From 9ca8064e218a8cd5f6974bb410866ab1816926ec Mon Sep 17 00:00:00 2001 From: parazyd Date: Mon, 12 Feb 2018 16:25:09 +0100 Subject: [PATCH] Add working dam-client initscript. --- rootfs-overlay/common/etc/init.d/dam-client | 8 ++++++-- rootfs-overlay/common/etc/rc.local | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/rootfs-overlay/common/etc/init.d/dam-client b/rootfs-overlay/common/etc/init.d/dam-client index a9bf81f..d04faf8 100755 --- a/rootfs-overlay/common/etc/init.d/dam-client +++ b/rootfs-overlay/common/etc/init.d/dam-client @@ -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" } diff --git a/rootfs-overlay/common/etc/rc.local b/rootfs-overlay/common/etc/rc.local index 4f5e2d4..45f3938 100755 --- a/rootfs-overlay/common/etc/rc.local +++ b/rootfs-overlay/common/etc/rc.local @@ -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