diff --git a/sample.confd b/sample.confd index 0abb80c6e89b2c2c746e9e893d9cde9218ff8892..eb0eecf7a6008a86e909ca3d71e936c43142f918 100644 --- a/sample.confd +++ b/sample.confd @@ -5,5 +5,3 @@ # OPTS="" -USER="nobody" -GROUP="nobody" diff --git a/sample.initd b/sample.initd index 980c53e72d328bd61217bf0890ca619cd5d5cba1..42d03e07d22232e97c023b5f323ab128292b396a 100644 --- a/sample.initd +++ b/sample.initd @@ -11,9 +11,9 @@ depend() { start() { ebegin "Starting ${NAME}" - start-stop-daemon --start --quiet --background \ - --make-pidfile --pidfile /var/run/${NAME}.pid \ - --chuid ${USER}:${GROUP} \ + start-stop-daemon --start --quiet \ + --pidfile /var/run/${NAME}.pid \ + --chuid ${DAEMON_USER}:${DAEMON_GROUP} \ --exec ${DAEMON} -- ${OPTS} eend $? }