aboutsummaryrefslogtreecommitdiff
path: root/network
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
parentda48480fec8e28b0fc41a9688589ea22a01a9f04 (diff)
network/postfix: Use full path and add status() to init script
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network')
-rw-r--r--network/postfix/postfix.SlackBuild2
-rw-r--r--network/postfix/rc.postfix16
2 files changed, 13 insertions, 5 deletions
diff --git a/network/postfix/postfix.SlackBuild b/network/postfix/postfix.SlackBuild
index 5b648341cfc9d..7e27650bb60c8 100644
--- a/network/postfix/postfix.SlackBuild
+++ b/network/postfix/postfix.SlackBuild
@@ -24,7 +24,7 @@
PRGNAM=postfix
VERSION=${VERSION:-2.9.4}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
diff --git a/network/postfix/rc.postfix b/network/postfix/rc.postfix
index 4aa3a6c35dcc6..6e133ad9ec282 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