summaryrefslogtreecommitdiff
path: root/network/postfix/rc.postfix
diff options
context:
space:
mode:
authorNishant Limbachia <nishant@mnspace.net>2013-02-24 01:13:07 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-02-24 10:23:10 -0600
commit386f5baf605497862c68ac9b96a8b854cdefc409 (patch)
treeb56c7297bba7d6240290cb9028d31f5c99941352 /network/postfix/rc.postfix
parentda48480fec8e28b0fc41a9688589ea22a01a9f04 (diff)
downloadslackbuilds-386f5baf605497862c68ac9b96a8b854cdefc409.tar.gz
network/postfix: Use full path and add status() to init script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/postfix/rc.postfix')
-rw-r--r--network/postfix/rc.postfix16
1 files changed, 12 insertions, 4 deletions
diff --git a/network/postfix/rc.postfix b/network/postfix/rc.postfix
index 4aa3a6c35d..6e133ad9ec 100644
--- a/network/postfix/rc.postfix
+++ b/network/postfix/rc.postfix
@@ -22,12 +22,12 @@
postfix_start()
{
- postfix start
+ /usr/sbin/postfix start
}
postfix_stop()
{
- postfix stop
+ /usr/sbin/postfix stop
}
postfix_restart()
@@ -38,7 +38,12 @@ postfix_restart()
postfix_reload()
{
- postfix reload
+ /usr/sbin/postfix reload
+}
+
+postfix_status()
+{
+ /usr/sbin/postfix status
}
case $1 in
@@ -54,6 +59,9 @@ case $1 in
'reload')
postfix_reload
;;
+'status')
+ postfix_status
+ ;;
*)
- echo "usage $0 start|stop|restart|reload"
+ echo "usage $0 start|stop|restart|reload|status"
esac