From b8ea4461e461f0e1782e28b5810eb811423afa79 Mon Sep 17 00:00:00 2001 From: Parabola Date: Thu, 19 May 2011 16:52:00 +0000 Subject: Thu May 19 16:52:00 UTC 2011 --- testing/postfix/rc.d | 37 ------------------------------------- 1 file changed, 37 deletions(-) delete mode 100755 testing/postfix/rc.d (limited to 'testing/postfix/rc.d') diff --git a/testing/postfix/rc.d b/testing/postfix/rc.d deleted file mode 100755 index 94ccc2af0..000000000 --- a/testing/postfix/rc.d +++ /dev/null @@ -1,37 +0,0 @@ -#!/bin/bash - -. /etc/rc.conf -. /etc/rc.d/functions - -name=postfix -PID=$(pidof -o %PPID /usr/lib/postfix/master) - -case "$1" in -start) - stat_busy "Starting $name daemon" - [[ -z "$PID" ]] && /usr/sbin/postfix start &>/dev/null \ - && { add_daemon $name; stat_done; } \ - || { stat_fail; exit 1; } - ;; -stop) - stat_busy "Stopping $name daemon" - [[ -n "$PID" ]] && /usr/sbin/postfix stop &>/dev/null \ - && { rm_daemon $name; stat_done; } \ - || { stat_fail; exit 1; } - ;; -reload) - stat_busy "Reloading $name daemon" - [[ -n "$PID" ]] && kill -HUP $PID &>/dev/null \ - && { stat_done; } \ - || { stat_fail; exit 1; } - ;; -restart) - $0 stop - sleep 1 - $0 start - ;; -*) - echo "usage: $0 {start|stop|restart|reload}" - ;; -esac -exit 0 -- cgit v1.2.3-54-g00ecf