aboutsummaryrefslogtreecommitdiff
path: root/branches/0.6/templates/vserver-legacy/vserver-legacy.d/etc/rc.d/rc.postfix
diff options
context:
space:
mode:
authorrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-13 21:46:27 +0000
committerrhatto <rhatto@04377dda-e619-0410-9926-eae83683ac58>2007-04-13 21:46:27 +0000
commitf76d87c78ade79c700b6dd48aeb6b8bbef60cf34 (patch)
treea64bfb20225c12ec13001a2ba7a4e3f381532c06 /branches/0.6/templates/vserver-legacy/vserver-legacy.d/etc/rc.d/rc.postfix
parentaa280bb3fbf166e31b939342c1d956848a801780 (diff)
downloadsimplepkg-f76d87c78ade79c700b6dd48aeb6b8bbef60cf34.tar.gz
simplepkg-f76d87c78ade79c700b6dd48aeb6b8bbef60cf34.tar.bz2
created 0.6 branch
git-svn-id: svn+slack://slack.fluxo.info/var/svn/simplepkg@341 04377dda-e619-0410-9926-eae83683ac58
Diffstat (limited to 'branches/0.6/templates/vserver-legacy/vserver-legacy.d/etc/rc.d/rc.postfix')
-rw-r--r--branches/0.6/templates/vserver-legacy/vserver-legacy.d/etc/rc.d/rc.postfix45
1 files changed, 45 insertions, 0 deletions
diff --git a/branches/0.6/templates/vserver-legacy/vserver-legacy.d/etc/rc.d/rc.postfix b/branches/0.6/templates/vserver-legacy/vserver-legacy.d/etc/rc.d/rc.postfix
new file mode 100644
index 0000000..bc32367
--- /dev/null
+++ b/branches/0.6/templates/vserver-legacy/vserver-legacy.d/etc/rc.d/rc.postfix
@@ -0,0 +1,45 @@
+#!/bin/sh
+#
+## Slackware init script for postfix
+## 20030828 Manolis Tzanidakis
+#
+
+postfix_start() {
+ if [ -x /usr/sbin/postfix ]; then
+ echo -n "Starting postfix MTA: "
+ echo "/usr/sbin/postfix start"
+ /usr/sbin/postfix start 2>/dev/null
+ fi
+}
+
+postfix_stop() {
+ /usr/sbin/postfix stop 2>/dev/null
+}
+
+postfix_restart() {
+ sh $0 stop
+ sleep 1
+ sh $0 start
+}
+
+postfix_reload() {
+ /usr/sbin/postfix reload 2>/dev/null
+}
+
+case "$1" in
+ 'start')
+ postfix_start
+ ;;
+ 'stop')
+ postfix_stop
+ ;;
+ 'restart')
+ postfix_restart
+ ;;
+ 'reload')
+ postfix_reload
+ ;;
+ *)
+ echo "usage $0 start|stop|restart|reload"
+esac
+