aboutsummaryrefslogtreecommitdiff
path: root/tags/0.6/templates/vserver/files/etc/rc.d/rc.sendmail
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2017-10-07 19:32:06 -0300
committerSilvio Rhatto <rhatto@riseup.net>2017-10-07 19:32:06 -0300
commit0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b (patch)
treed4429ce3a62e9cb5d095ad567b5f821d99a7b9f5 /tags/0.6/templates/vserver/files/etc/rc.d/rc.sendmail
parent5bfb15bdbedbc7273a283d611c84ed1cf401011b (diff)
downloadsimplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.gz
simplepkg-0d6bcb2b7d08e3a41481372c1ae0d11868d88b1b.tar.bz2
New repo layout with git migration
Diffstat (limited to 'tags/0.6/templates/vserver/files/etc/rc.d/rc.sendmail')
-rw-r--r--tags/0.6/templates/vserver/files/etc/rc.d/rc.sendmail38
1 files changed, 0 insertions, 38 deletions
diff --git a/tags/0.6/templates/vserver/files/etc/rc.d/rc.sendmail b/tags/0.6/templates/vserver/files/etc/rc.d/rc.sendmail
deleted file mode 100644
index 1a31c52..0000000
--- a/tags/0.6/templates/vserver/files/etc/rc.d/rc.sendmail
+++ /dev/null
@@ -1,38 +0,0 @@
-#!/bin/sh
-# Start/stop/restart sendmail.
-
-# Start sendmail:
-sendmail_start() {
- if [ -x /usr/sbin/sendmail ]; then
- echo "Starting sendmail MTA daemon: /usr/sbin/sendmail -L sm-mta -bd -q25m"
- /usr/sbin/sendmail -L sm-mta -bd -q25m
- echo "Starting sendmail MSP queue runner: /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m"
- /usr/sbin/sendmail -L sm-msp-queue -Ac -q25m
- fi
-}
-
-# Stop sendmail:
-sendmail_stop() {
- killall sendmail
-}
-
-# Restart sendmail:
-sendmail_restart() {
- sendmail_stop
- sleep 1
- sendmail_start
-}
-
-case "$1" in
-'start')
- sendmail_start
- ;;
-'stop')
- sendmail_stop
- ;;
-'restart')
- sendmail_restart
- ;;
-*)
- echo "usage $0 start|stop|restart"
-esac