mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
* use new job style for ddclient upstart
svn path=/nixos/trunk/; revision=17184
This commit is contained in:
parent
44f99c64d4
commit
bb8c6b038d
1 changed files with 22 additions and 26 deletions
|
@ -114,23 +114,19 @@ in
|
||||||
|
|
||||||
name = "ddclient";
|
name = "ddclient";
|
||||||
|
|
||||||
job = ''
|
startOn = "startup";
|
||||||
description "ddclient daemon"
|
stopOn = "shutdown";
|
||||||
|
|
||||||
start on startup
|
|
||||||
stop on shutdown
|
|
||||||
|
|
||||||
start script
|
|
||||||
|
|
||||||
|
preStart = ''
|
||||||
mkdir -m 0755 -p ${stateDir}
|
mkdir -m 0755 -p ${stateDir}
|
||||||
chown ${ddclientUser} ${stateDir}
|
chown ${ddclientUser} ${stateDir}
|
||||||
|
|
||||||
# Needed to run ddclient as an unprivileged user.
|
# Needed to run ddclient as an unprivileged user.
|
||||||
${modprobe}/sbin/modprobe capability || true
|
${modprobe}/sbin/modprobe capability || true
|
||||||
|
'';
|
||||||
|
|
||||||
end script
|
script = ''
|
||||||
|
${ddclient}/bin/ddclient ${ddclientFlags}
|
||||||
respawn ${ddclient}/bin/ddclient ${ddclientFlags}
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue