summaryrefslogtreecommitdiff
path: root/network/exim/contrib
diff options
context:
space:
mode:
authorThomas Morper <thomas@beingboiled.info>2017-12-23 12:22:47 +0000
committerRobby Workman <rworkman@slackbuilds.org>2017-12-27 18:11:22 -0600
commitc0d2b647445bbccd59a233cbb37cb28e29f4f294 (patch)
tree97baf62c55c713c12fe0a8540f0682838da5fd6d /network/exim/contrib
parent064e99737370b15c1685b67e088806f1983e883e (diff)
downloadslackbuilds-c0d2b647445bbccd59a233cbb37cb28e29f4f294.tar.gz
network/exim: Updated for version 4.90.
Signed-off-by: David Spencer <idlemoor@slackbuilds.org>
Diffstat (limited to 'network/exim/contrib')
-rw-r--r--network/exim/contrib/exim.logrotate12
-rw-r--r--network/exim/contrib/rc.exim28
-rw-r--r--network/exim/contrib/rc.exim.new28
3 files changed, 34 insertions, 34 deletions
diff --git a/network/exim/contrib/exim.logrotate b/network/exim/contrib/exim.logrotate
index 36b542b5f4..9653b546d8 100644
--- a/network/exim/contrib/exim.logrotate
+++ b/network/exim/contrib/exim.logrotate
@@ -1,8 +1,8 @@
/var/log/exim/*.log {
- missingok
- notifempty
- sharedscripts
- postrotate
- /bin/kill -HUP $(cat /var/run/exim.pid 2>/dev/null) 2>/dev/null || /usr/bin/true
- endscript
+ missingok
+ notifempty
+ sharedscripts
+ postrotate
+ pkill -F /var/run/exim.pid -HUP > /dev/null 2>&1 || true
+ endscript
}
diff --git a/network/exim/contrib/rc.exim b/network/exim/contrib/rc.exim
new file mode 100644
index 0000000000..d448ddd708
--- /dev/null
+++ b/network/exim/contrib/rc.exim
@@ -0,0 +1,28 @@
+#!/bin/sh
+
+# Run SMTP listening daemon, do queue runs every 10 mins.
+EXIM_ARGS="-bd -q10m"
+
+# Read alternative EXIM_ARGS line from /etc/default/exim.
+test -f /etc/default/exim && source /etc/default/exim
+
+case "$1" in
+ start)
+ echo "starting exim"
+ /usr/sbin/exim $EXIM_ARGS
+ ;;
+ stop)
+ echo "stopping exim"
+ pkill -F /var/run/exim.pid
+ ;;
+ reload)
+ echo "reloading exim"
+ pkill -F /var/run/exim.pid -HUP
+ ;;
+ restart)
+ $0 stop; sleep 2; $0 start
+ ;;
+ *)
+ echo "usage: $0 {start|stop|reload|restart}"
+ ;;
+esac
diff --git a/network/exim/contrib/rc.exim.new b/network/exim/contrib/rc.exim.new
deleted file mode 100644
index 3fb62f1bf3..0000000000
--- a/network/exim/contrib/rc.exim.new
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/sh
-# Start/stop/restart the Exim MTA
-
-# Run as SMTP listener daemon, do queue runs every 15 mins.
-EXIM_ARGS="-bd -q15m"
-
-case "$1" in
- start)
- echo "Starting Exim"
- /usr/sbin/exim $EXIM_ARGS
- ;;
- stop)
- echo "Stopping Exim"
- pkill -f /usr/sbin/exim
- ;;
- reload)
- echo "Reloading Exim config"
- pkill -HUP -f /usr/sbin/exim
- ;;
- restart)
- $0 stop
- sleep 2
- $0 start
- ;;
- *)
- echo "usage: $0 {start|stop|reload|restart}"
- ;;
-esac