summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJerry Alexandratos <jerry@gentoo.org>2000-12-26 19:18:16 +0000
committerJerry Alexandratos <jerry@gentoo.org>2000-12-26 19:18:16 +0000
commitb6eeaebe3059d5c1d6366a8da1adccaa816b69d5 (patch)
treea10c64924a99e7739ec766b4569f13bcf9b8eb83 /net-mail/postfix
parentThis daemon is required to use the old /dev syntax together with the (diff)
downloadgentoo-2-b6eeaebe3059d5c1d6366a8da1adccaa816b69d5.tar.gz
gentoo-2-b6eeaebe3059d5c1d6366a8da1adccaa816b69d5.tar.bz2
gentoo-2-b6eeaebe3059d5c1d6366a8da1adccaa816b69d5.zip
This is the standard init.d script for postfix.
Diffstat (limited to 'net-mail/postfix')
-rwxr-xr-xnet-mail/postfix/files/postfix30
1 files changed, 30 insertions, 0 deletions
diff --git a/net-mail/postfix/files/postfix b/net-mail/postfix/files/postfix
new file mode 100755
index 000000000000..7de03c74d0cb
--- /dev/null
+++ b/net-mail/postfix/files/postfix
@@ -0,0 +1,30 @@
+#!/bin/sh
+#RCUPDATE:2 3 4:75:This line is required for script management
+
+. /etc/rc.d/config/functions
+
+SERVICE=postfix
+opts="start stop restart"
+
+PIDFILE=/var/spool/postfix/pid/master.pid
+EXE=/usr/sbin/postfix
+#ARGS="-bd -q15m"
+
+start() {
+ ebegin "Starting $SERVICE..."
+ $EXE start >/dev/null 2>&1
+ eend $? "Started $SERVICE." "Error Starting $SERVICE."
+}
+
+stop() {
+ ebegin "Stopping $SERVICE..."
+ $EXE stop >/dev/null 2>&1
+ eend $? "Stopped $SERVICE." "Error Stopping $SERVICE."
+}
+
+restart() {
+ stop
+ start
+}
+
+doservice ${@}