diff options
author | Florian Pritz <bluewind@xssn.at> | 2010-08-16 23:01:00 +0200 |
---|---|---|
committer | Florian Pritz <bluewind@xssn.at> | 2010-08-16 23:01:00 +0200 |
commit | f220a7df9bc9b607415b7975fce94517b035fc08 (patch) | |
tree | d366e4196b790ac4006792a32ce02b5b91289e3e /spampd/rc-script | |
parent | 81323da4d1b434e3d0351f878f7eabc2563d3044 (diff) | |
download | aur-packages-f220a7df9bc9b607415b7975fce94517b035fc08.tar.gz aur-packages-f220a7df9bc9b607415b7975fce94517b035fc08.tar.xz |
update
Signed-off-by: Florian Pritz <bluewind@xssn.at>
Diffstat (limited to 'spampd/rc-script')
-rwxr-xr-x | spampd/rc-script | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/spampd/rc-script b/spampd/rc-script index 364e064..7c4b059 100755 --- a/spampd/rc-script +++ b/spampd/rc-script @@ -4,11 +4,9 @@ . /etc/rc.d/functions . /etc/conf.d/spampd -PID=$(cat /var/run/spampd.pid) - start() { stat_busy "Starting Spampd" - /usr/bin/spampd $ARGS + su -l spampd -c "/usr/bin/spampd $ARGS" if [ $? -gt 0 ]; then stat_fail else @@ -19,11 +17,11 @@ start() { stop() { stat_busy "Stopping Spampd" - kill $PID + kill $(cat /home/spampd/spampd.pid) if [ $? -gt 0 ]; then stat_fail else - rm_daemon postfix + rm_daemon spampd stat_done fi } |