* use new job style for ddclient upstart

svn path=/nixos/trunk/; revision=17184
This commit is contained in:
Rob Vermaas 2009-09-16 11:57:41 +00:00
parent 44f99c64d4
commit bb8c6b038d

View File

@ -114,23 +114,19 @@ in
name = "ddclient";
job = ''
description "ddclient daemon"
start on startup
stop on shutdown
start script
startOn = "startup";
stopOn = "shutdown";
preStart = ''
mkdir -m 0755 -p ${stateDir}
chown ${ddclientUser} ${stateDir}
# Needed to run ddclient as an unprivileged user.
${modprobe}/sbin/modprobe capability || true
'';
end script
respawn ${ddclient}/bin/ddclient ${ddclientFlags}
script = ''
${ddclient}/bin/ddclient ${ddclientFlags}
'';
};