From 9f154d9db35d4df58ec8d6effd0bde310a5d2614 Mon Sep 17 00:00:00 2001 From: Mikhail Gusarov Date: Fri, 28 Mar 2014 15:01:33 +0100 Subject: Update Debianization from 0.6 branch --- debian/rspamd.init | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'debian/rspamd.init') diff --git a/debian/rspamd.init b/debian/rspamd.init index 629f43ebe..0c84118da 100755 --- a/debian/rspamd.init +++ b/debian/rspamd.init @@ -20,15 +20,10 @@ DAEMON_ARGS="-c /etc/rspamd/rspamd.conf" DESC="rapid spam filtering system" PIDFILE=/run/rspamd/$NAME.pid SCRIPTNAME=/etc/init.d/$NAME -RSPAMD_USERNAME=_rspamd -RSPAMD_GROUPNAME=_rspamd # Exit if the package is not installed [ -x "$DAEMON" ] || exit 0 -# Read configuration variable file if it is present -[ -r /etc/default/$NAME ] && . /etc/default/$NAME - # Load the VERBOSE setting and other rcS variables . /lib/init/vars.sh @@ -45,11 +40,11 @@ do_start() # 0 if daemon has been started # 1 if daemon was already running # 2 if daemon could not be started - mkdir -m 755 $RSPAMD_USERNAME:$RSPAMD_GROUPNAME -p /run/rspamd + mkdir -m 755 _rspamd:_rspamd -p /run/rspamd start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --test > /dev/null \ || return 1 start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON -- \ - $DAEMON_ARGS -u $RSPAMD_USERNAME -g $RSPAMD_GROUPNAME \ + $DAEMON_ARGS -u _rspamd -g _rspamd \ || return 2 } -- cgit v1.2.3