summaryrefslogtreecommitdiff
path: root/extra/postfix/rc.d
diff options
context:
space:
mode:
authorJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 11:13:51 -0500
committerJoshua Ismael Haase Hernandez <hahj87@gmail.com>2011-05-26 11:13:51 -0500
commitb18caf89fb235f174419d578a7da0237e456ef3d (patch)
tree9a9f7e391135f5ce2b05b3956ced1a00bd664bbb /extra/postfix/rc.d
parenta084559f421a288dd77f81e458161f95ae8d1be9 (diff)
parent6e35be4b44d90f92ddceb8b067cbbf03fc652a35 (diff)
Merge branch 'master' of vparabola:~/abslibre-pre-mips64el
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; }
;;