diff options
Diffstat (limited to 'debian/phenny.init')
-rwxr-xr-x | debian/phenny.init | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/debian/phenny.init b/debian/phenny.init index 5dec77e..e0a87fe 100755 --- a/debian/phenny.init +++ b/debian/phenny.init @@ -48,11 +48,17 @@ chown "$PHENNY_USER:$PHENNY_GROUP" "$PIDDIR" case "$1" in start) + if [ -n "$PHENNY_GROUP" ]; then + CHUID="$PHENNY_USER:$PHENNY_GROUP" + else + CHUID="$PHENNY_USER" + fi + log_daemon_msg "Starting $DESC" "$NAME" start-stop-daemon --start \ --pidfile "$PIDDIR/$NAME.pid" \ --make-pidfile \ - --chuid "$PHENNY_USER:$PHENNY_GROUP" \ + --chuid "$CHUID" \ --background \ --exec $DAEMON -- --config "$PHENNY_CONFIG" $PHENNY_OPTS log_end_msg $? |