~upstart-devel/upstart/upstart-jobs

« back to all changes in this revision

Viewing changes to utopic/etc/init/nsd.conf

  • Committer: Dimitri John Ledkov
  • Date: 2014-11-19 12:58:41 UTC
  • Revision ID: dimitri.j.ledkov@intel.com-20141119125841-98dr37roy8dvcv3b
auto update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# nsd - Name Server Daemon
2
 
 
3
 
description "Name Server Daemon"
4
 
author "Ondřej Surý <ondrej@debian.org>"
5
 
 
6
 
start on runlevel [2345]
7
 
stop on runlevel [016]
8
 
 
9
 
env CONFFILE=/etc/nsd/nsd.conf
10
 
 
11
 
respawn
12
 
pre-start script
13
 
    # prepare environment
14
 
    mkdir -p "$(dirname "$(/usr/sbin/nsd-checkconf -o pidfile $CONFFILE)")"
15
 
    chown "$(/usr/sbin/nsd-checkconf -o username $CONFFILE)" "$(dirname "$(/usr/sbin/nsd-checkconf -o pidfile $CONFFILE)")"
16
 
    mkdir -p "$(dirname "$(/usr/sbin/nsd-checkconf -o database $CONFFILE)")"
17
 
    chown "$(/usr/sbin/nsd-checkconf -o username $CONFFILE)" "$(dirname "$(/usr/sbin/nsd-checkconf -o database $CONFFILE)")"
18
 
end script
19
 
 
20
 
exec /usr/sbin/nsd -d -c $CONFFILE