summaryrefslogtreecommitdiffstats
path: root/extra/gross/grossd.initd
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gross/grossd.initd')
-rw-r--r--extra/gross/grossd.initd35
1 files changed, 0 insertions, 35 deletions
diff --git a/extra/gross/grossd.initd b/extra/gross/grossd.initd
deleted file mode 100644
index 3d1c43d7..00000000
--- a/extra/gross/grossd.initd
+++ /dev/null
@@ -1,35 +0,0 @@
-#!/sbin/runscript
-
-NAME="grossd"
-DAEMON="/usr/sbin/$NAME"
-DAEMON_USER="gross"
-DAEMON_GROUP="gross"
-
-depend() {
- need net
-}
-
-check_config() {
- if [ ! -f /var/db/gross/state ] ; then
- einfo "Generating Gross database..."
- install -dD -o${DAEMON_USER} -g${DAEMON_GROUP} /var/db/gross
- ${DAEMON} -Cu ${DAEMON_USER} > /dev/null
- fi
-}
-
-start() {
- check_config || return 1
- ebegin "Starting ${NAME}"
- start-stop-daemon --start --quiet \
- --exec ${DAEMON} -- \
- -p /var/run/gross/grossd.pid \
- -u ${DAEMON_USER} ${OPTS}
- eend $?
-}
-
-stop() {
- ebegin "Stopping ${NAME}"
- start-stop-daemon --stop --pidfile /var/run/gross/grossd.pid
- eend $?
-}
-