Skip to content

Instantly share code, notes, and snippets.

@physhster
Forked from kometchtech/unbound.service
Last active February 25, 2016 02:36
Show Gist options
  • Save physhster/c2e760360a0ae5eb42a0 to your computer and use it in GitHub Desktop.
Save physhster/c2e760360a0ae5eb42a0 to your computer and use it in GitHub Desktop.

Revisions

  1. physhster revised this gist Feb 25, 2016. 1 changed file with 12 additions and 7 deletions.
    19 changes: 12 additions & 7 deletions unbound.service
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,19 @@
    [Unit]
    Description=Unbound is a validating, recursive, and caching DNS resolver.
    After=network.target networking.service
    Description=Unbound recursive Domain Name Server
    After=syslog.target network.target network-online.target
    After=unbound-keygen.service
    Wants=network-online.target
    Wants=unbound-keygen.service
    Wants=unbound-anchor.timer
    Before=nss-lookup.target
    Wants=nss-lookup.target

    [Service]
    Type=simple
    ExecStartPre=/usr/local/sbin/unbound-anchor -a /var/unbound/root.key
    ExecStartPre=/usr/local/sbin/unbound-checkconf
    ExecStart=/usr/local/sbin/unbound -d
    LimitNOFILE=102400
    LimitNPROC=65535
    EnvironmentFile=-/etc/sysconfig/unbound
    ExecStartPre=/usr/sbin/unbound-checkconf
    ExecStartPre=-/usr/sbin/unbound-anchor -a /var/lib/unbound/root.key -c /etc/unbound/icannbundle.pem
    ExecStart=/usr/sbin/unbound -d $UNBOUND_OPTIONS

    [Install]
    WantedBy=multi-user.target
  2. @kometchtech kometchtech revised this gist Sep 25, 2015. No changes.
  3. @kometchtech kometchtech revised this gist Sep 25, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion unbound.service
    Original file line number Diff line number Diff line change
    @@ -4,9 +4,11 @@ After=network.target networking.service

    [Service]
    Type=simple
    ExecStartPre=/usr/local/sbin/unbound-anchor -a /var/lib/unbound/root.key
    ExecStartPre=/usr/local/sbin/unbound-anchor -a /var/unbound/root.key
    ExecStartPre=/usr/local/sbin/unbound-checkconf
    ExecStart=/usr/local/sbin/unbound -d
    LimitNOFILE=102400
    LimitNPROC=65535

    [Install]
    WantedBy=multi-user.target
  4. @kometchtech kometchtech created this gist Apr 19, 2015.
    12 changes: 12 additions & 0 deletions unbound.service
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    [Unit]
    Description=Unbound is a validating, recursive, and caching DNS resolver.
    After=network.target networking.service

    [Service]
    Type=simple
    ExecStartPre=/usr/local/sbin/unbound-anchor -a /var/lib/unbound/root.key
    ExecStartPre=/usr/local/sbin/unbound-checkconf
    ExecStart=/usr/local/sbin/unbound -d

    [Install]
    WantedBy=multi-user.target