diff options
author | Donny Davies <woodchip@gentoo.org> | 2001-09-18 06:40:40 +0000 |
---|---|---|
committer | Donny Davies <woodchip@gentoo.org> | 2001-09-18 06:40:40 +0000 |
commit | a8f713b93bd951af87507a15238d1832874930d7 (patch) | |
tree | 072a76dd4aff46a7a9779d336a6e692f62684d6d /net-mail/postfix | |
parent | latest version of iproute2. complete with the compilation fix mentioned on th... (diff) | |
download | gentoo-2-a8f713b93bd951af87507a15238d1832874930d7.tar.gz gentoo-2-a8f713b93bd951af87507a15238d1832874930d7.tar.bz2 gentoo-2-a8f713b93bd951af87507a15238d1832874930d7.zip |
trimmed the extra stuff that isnt really needed in the new rc6 inits. ex. the restart function is supported by the new init natively. also, the daemon paths may as well be used directly instead of the VARIABLE stuff at the top, since the initscripts are really companions to the ebuilds, which themselves install to a known location.. this can lead to really, super lean and mean initscripts. plus less VARIABLES equals less memory usage! hehe.. yeah i know, probably not even noticable.. good for appearence though. :)
Diffstat (limited to 'net-mail/postfix')
-rw-r--r-- | net-mail/postfix/files/postfix-rc6 | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/net-mail/postfix/files/postfix-rc6 b/net-mail/postfix/files/postfix-rc6 index e015e00b4510..e709d4e4b3a6 100644 --- a/net-mail/postfix/files/postfix-rc6 +++ b/net-mail/postfix/files/postfix-rc6 @@ -1,28 +1,19 @@ #!/sbin/runscript -SERVICE=postfix -opts="start stop restart" - PIDFILE=/var/spool/postfix/pid/master.pid -EXE=/usr/sbin/postfix depend() { - need sysklogd net + need sysklogd net } start() { - ebegin "Starting $SERVICE..." - $EXE start >/dev/null 2>&1 - eend $? "Started $SERVICE." "Error Starting $SERVICE." + ebegin "Starting postfix" + /usr/sbin/postfix start >/dev/null 2>&1 + eend $? } stop() { - ebegin "Stopping $SERVICE..." - $EXE stop >/dev/null 2>&1 - eend $? "Stopped $SERVICE." "Error Stopping $SERVICE." -} - -restart() { - stop - start + ebegin "Stopping postfix" + /usr/sbin/postfix stop >/dev/null 2>&1 + eend $? } |