diff options
author | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
---|---|---|
committer | Florian Pritz <bluewind@xinu.at> | 2012-12-16 11:51:24 +0100 |
commit | c6000c9d9949b3326fb82f02431899ab6774b960 (patch) | |
tree | 2453cd564b0f382f3d8ccd893df8ebe2e9aeda71 /amavisd-new/amavisd | |
parent | 453f0f12918af35bd8e1e5f049841360f37d62e4 (diff) | |
download | aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.gz aur-packages-c6000c9d9949b3326fb82f02431899ab6774b960.tar.xz |
big cleanup
Diffstat (limited to 'amavisd-new/amavisd')
-rw-r--r-- | amavisd-new/amavisd | 77 |
1 files changed, 0 insertions, 77 deletions
diff --git a/amavisd-new/amavisd b/amavisd-new/amavisd deleted file mode 100644 index 3061535..0000000 --- a/amavisd-new/amavisd +++ /dev/null @@ -1,77 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -DAEMON_CONF="/etc/amavisd/amavisd.conf" - -PID=`pidof -o %PPID amavisd` - -case "$1" in - - start) - - stat_busy "Starting amavisd" - - [ -z "$PID" ] && /usr/sbin/amavisd -c ${DAEMON_CONF} &> /dev/null - - if [ $? -gt 0 ]; then - - stat_fail - - else - - add_daemon amavisd - - stat_done - - fi - - ;; - - stop) - - stat_busy "Stopping amavisd" - - [ ! -z "$PID" ] && kill $PID &> /dev/null - - if [ $? -gt 0 ]; then - - stat_fail - - else - - rm_daemon amavisd - stat_done - - fi - - ;; - - restart) - - $0 stop - - sleep 3 - - $0 start - - ;; - - reload) - - stat_busy "Reloading amavisd" - - /usr/sbin/amavisd -c ${DAEMON_CONF} reload - - stat_done - - ;; - - *) - echo "usage: $0 {start|stop|restart|reload}" - ;; - -esac - -exit 0 |