Add working dam-client initscript.
This commit is contained in:
parent
0722dae9d4
commit
9ca8064e21
|
|
@ -12,6 +12,10 @@ depend() {
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
start-stop-daemon --start -u decode -g decode \
|
start-stop-daemon --start \
|
||||||
--pidfile $pidfile -b -m -x $command
|
-u decode -g decode \
|
||||||
|
--make-pidfile --pidfile $pidfile \
|
||||||
|
--background \
|
||||||
|
--startas /bin/bash -- -c \
|
||||||
|
"exec $command >> /var/log/dam-client.log 2>&1"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
# rc.local for base images
|
# rc.local for base images
|
||||||
|
|
||||||
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || ssh-keygen -A
|
[ -f /etc/ssh/ssh_host_rsa_key.pub ] || ssh-keygen -A
|
||||||
[ -f /etc/part-expand.sh ] || /etc/part-expand.sh
|
[ -f /etc/part-expand.sh ] && /etc/part-expand.sh
|
||||||
|
|
||||||
netdata
|
netdata
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue