Add working dam-client initscript.

This commit is contained in:
parazyd 2018-02-12 16:25:09 +01:00
parent 0722dae9d4
commit 9ca8064e21
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 7 additions and 3 deletions

View File

@ -12,6 +12,10 @@ depend() {
}
start() {
start-stop-daemon --start -u decode -g decode \
--pidfile $pidfile -b -m -x $command
start-stop-daemon --start \
-u decode -g decode \
--make-pidfile --pidfile $pidfile \
--background \
--startas /bin/bash -- -c \
"exec $command >> /var/log/dam-client.log 2>&1"
}

View File

@ -2,7 +2,7 @@
# rc.local for base images
[ -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