if [ "$run_as_user" = "non-root" ]; then
if ! grep -q '^OPTIONS=".*username=spamd"' \
/etc/default/spamassassin; then
- service stop spamassassin
+ service spamassassin stop
rstart=yes
fi
elif [ "$run_as_user" = "root" ]; then
if grep -q '^OPTIONS=".*username=spamd"' \
/etc/default/spamassassin; then
- service stop spamassassin
+ service spamassassin stop
restart=yes
fi
# restart the spamasassin
if [ "x$restart" = "xyes" ]; then
pkill -f /usr/sbin/spamd || true
- service restart spamassassin
+ service spamassassin restart
fi
# restart the amavis
if [ "x$restart" = "xyes" -a -x /etc/init.d/amavis ]; then
- service restart amavis
+ service amavis restart
fi
# dh_installdeb will replace this with shell code automatically