summaryrefslogtreecommitdiffstats
path: root/spampd/rc-script
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-08-01 09:26:50 +0200
committerFlorian Pritz <bluewind@xinu.at>2014-08-01 09:26:50 +0200
commit94e6242e2a1465d87f22a659b8ad8b1b8216d430 (patch)
tree7d605413954c1541a3cbf5e8ea4baabfcdd7fc44 /spampd/rc-script
parentbef07487b97008236c149b4a3fde726aa0e9e415 (diff)
downloadaur-packages-94e6242e2a1465d87f22a659b8ad8b1b8216d430.tar.gz
aur-packages-94e6242e2a1465d87f22a659b8ad8b1b8216d430.tar.xz
spampd moved to community
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'spampd/rc-script')
-rwxr-xr-xspampd/rc-script44
1 files changed, 0 insertions, 44 deletions
diff --git a/spampd/rc-script b/spampd/rc-script
deleted file mode 100755
index 7c4b059..0000000
--- a/spampd/rc-script
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/bash
-
-. /etc/rc.conf
-. /etc/rc.d/functions
-. /etc/conf.d/spampd
-
-start() {
- stat_busy "Starting Spampd"
- su -l spampd -c "/usr/bin/spampd $ARGS"
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon spampd
- stat_done
- fi
-}
-
-stop() {
- stat_busy "Stopping Spampd"
- kill $(cat /home/spampd/spampd.pid)
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon spampd
- stat_done
- fi
-}
-
-case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- restart)
- # calling 'stop' and 'start' without the $0 fails...
- $0 stop
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac
-exit 0