summaryrefslogtreecommitdiffstats
path: root/extra/gross/gross.initd
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gross/gross.initd')
-rw-r--r--extra/gross/gross.initd12
1 files changed, 6 insertions, 6 deletions
diff --git a/extra/gross/gross.initd b/extra/gross/gross.initd
index c67293e17..3d1c43d70 100644
--- a/extra/gross/gross.initd
+++ b/extra/gross/gross.initd
@@ -2,8 +2,8 @@
NAME="grossd"
DAEMON="/usr/sbin/$NAME"
-USER="gross"
-GROUP="gross"
+DAEMON_USER="gross"
+DAEMON_GROUP="gross"
depend() {
need net
@@ -12,18 +12,18 @@ depend() {
check_config() {
if [ ! -f /var/db/gross/state ] ; then
einfo "Generating Gross database..."
- install -dD -o${USER} -g${GROUP} /var/db/gross
- ${DAEMON} -Cu ${USER} > /dev/null
+ 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 --background \
+ start-stop-daemon --start --quiet \
--exec ${DAEMON} -- \
-p /var/run/gross/grossd.pid \
- -u ${USER} ${OPTS}
+ -u ${DAEMON_USER} ${OPTS}
eend $?
}