aboutsummaryrefslogtreecommitdiffstats
path: root/community/exim/exim.initd
diff options
context:
space:
mode:
Diffstat (limited to 'community/exim/exim.initd')
-rw-r--r--community/exim/exim.initd29
1 files changed, 29 insertions, 0 deletions
diff --git a/community/exim/exim.initd b/community/exim/exim.initd
new file mode 100644
index 0000000000..275279e168
--- /dev/null
+++ b/community/exim/exim.initd
@@ -0,0 +1,29 @@
+#!/sbin/openrc-run
+
+description="EXIM internet mailer"
+cfgfile=/etc/exim/exim.conf
+pidfile=/run/exim.pid
+command=/usr/sbin/exim
+command_args=${command_args:--bd -q15m}
+required_files="$cfgfile"
+extra_started_commands="reload"
+description_reload="Reload configuration"
+
+depend() {
+ use antivirus net
+ provide mta
+}
+
+start_pre() {
+ ebegin
+ checkpath -d -o exim:mail -m750 "/var/log/exim"
+ checkpath -d -o exim:mail -m750 "/usr/lib/exim"
+ $command -bV >/dev/null 2>>${startuplog:-/dev/null}
+ eend $?
+}
+
+reload() {
+ ebegin "Reloading $RC_SVCNAME"
+ start-stop-daemon --signal HUP --pidfile $pidfile
+ eend $?
+}