summaryrefslogtreecommitdiff
path: root/extra/postfix/rc.d
diff options
context:
space:
mode:
Diffstat (limited to 'extra/postfix/rc.d')
-rwxr-xr-xextra/postfix/rc.d7
1 files changed, 3 insertions, 4 deletions
diff --git a/extra/postfix/rc.d b/extra/postfix/rc.d
index 94ccc2af0..fa314bb84 100755
--- a/extra/postfix/rc.d
+++ b/extra/postfix/rc.d
@@ -4,24 +4,23 @@
. /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 \
+ /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 \
+ /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 \
+ /usr/sbin/postfix reload &>/dev/null \
&& { stat_done; } \
|| { stat_fail; exit 1; }
;;