diff options
author | Paul Kilar <pkilar@gmail.com> | 2014-07-17 10:04:08 -0400 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2014-07-30 14:37:05 +0000 |
commit | ba644daa31205bf4ef3a186420ee287b94c78a42 (patch) | |
tree | 176f3105e028e606f8da5574f47977d53cfbb571 /testing/dante/sockd.initd | |
parent | 521a66392c56173f7c228717323170866245ea19 (diff) | |
download | aports-ba644daa31205bf4ef3a186420ee287b94c78a42.tar.bz2 aports-ba644daa31205bf4ef3a186420ee287b94c78a42.tar.xz |
testing/dante: Fix startup script
Diffstat (limited to 'testing/dante/sockd.initd')
-rw-r--r-- | testing/dante/sockd.initd | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/testing/dante/sockd.initd b/testing/dante/sockd.initd index ebf278036..94311ddf7 100644 --- a/testing/dante/sockd.initd +++ b/testing/dante/sockd.initd @@ -10,34 +10,10 @@ depend() { use dns } -SOCKD_PIDFILE=${SSHD_PIDFILE:-/var/run/${SVCNAME}.pid} -SOCKD_BINARY=${SSHD_BINARY:-/usr/sbin/sockd} +command=/usr/sbin/sockd +pidfile=/var/run/${SVCNAME}.pid +command_args="${SOCKD_OPTS}" -check_config() { - $SOCKD_BINARY -V || return 1 -} - -######################################################################################### - -start() { - check_config || return 1 - ebegin "Starting ${SVCNAME}" - start-stop-daemon --start --exec "${SOCKD_BINARY}" \ - --pidfile "${SOCKD_PIDFILE}" \ - -- ${SOCKD_OPTS} - eend $? -} - -stop() { - ebegin "Stopping ${SVCNAME}" - start-stop-daemon --stop --exec "${SOCKD_BINARY}" \ - --pidfile "${SOCKD_PIDFILE}" --quiet - eend $? -} - -restart() { - ebegin "Restarting ${SVCNAME}" - stop - start - eend $? +start_pre() { + $command -V } |