diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /mail-filter/rmilter/files |
reinit the tree, so we can have metadata
Diffstat (limited to 'mail-filter/rmilter/files')
-rw-r--r-- | mail-filter/rmilter/files/rmilter.initd | 27 | ||||
-rw-r--r-- | mail-filter/rmilter/files/rmilter.initd-r1 | 25 | ||||
-rw-r--r-- | mail-filter/rmilter/files/rmilter.initd-r2 | 26 |
3 files changed, 78 insertions, 0 deletions
diff --git a/mail-filter/rmilter/files/rmilter.initd b/mail-filter/rmilter/files/rmilter.initd new file mode 100644 index 000000000000..d155a4a43b4e --- /dev/null +++ b/mail-filter/rmilter/files/rmilter.initd @@ -0,0 +1,27 @@ +#!/sbin/openrc-run +# Copyright 2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +RUNDIR=/var/run/rmilter +PIDFILE=$RUNDIR/rmilter.pid + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + mkdir -m0750 -p $RUNDIR + chown rmilter:rmilter $RUNDIR + chmod g+s $RUNDIR + rm -f $RUNDIR/$SVCNAME.sock + start-stop-daemon --start --quiet --pidfile $PIDFILE -u rmilter \ + --exec /usr/sbin/rmilter -- -c /etc/rmilter/rmilter.conf + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile $PIDFILE + eend $? +} diff --git a/mail-filter/rmilter/files/rmilter.initd-r1 b/mail-filter/rmilter/files/rmilter.initd-r1 new file mode 100644 index 000000000000..03eaa2512f8e --- /dev/null +++ b/mail-filter/rmilter/files/rmilter.initd-r1 @@ -0,0 +1,25 @@ +#!/sbin/openrc-run +# Copyright 2015-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +RUNDIR=/var/run/rmilter +PIDFILE=$RUNDIR/rmilter.pid + +depend() { + need net +} + +start() { + ebegin "Starting ${SVCNAME}" + checkpath -d $RUNDIR -m2750 -o rmilter:rmilter + rm -f $RUNDIR/$SVCNAME.sock + start-stop-daemon --start --quiet --pidfile $PIDFILE -u rmilter \ + --exec /usr/sbin/rmilter -- -c /etc/rmilter/rmilter.conf + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile $PIDFILE + eend $? +} diff --git a/mail-filter/rmilter/files/rmilter.initd-r2 b/mail-filter/rmilter/files/rmilter.initd-r2 new file mode 100644 index 000000000000..08b4c642d7ad --- /dev/null +++ b/mail-filter/rmilter/files/rmilter.initd-r2 @@ -0,0 +1,26 @@ +#!/sbin/openrc-run +# Copyright 2015-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +RUNDIR=/var/run/rmilter +PIDFILE=$RUNDIR/rmilter.pid + +depend() { + need net + before mta +} + +start() { + ebegin "Starting ${SVCNAME}" + checkpath -d $RUNDIR -m2750 -o rmilter:rmilter + rm -f $RUNDIR/$SVCNAME.sock + start-stop-daemon --start --quiet --pidfile $PIDFILE -u rmilter \ + --exec /usr/sbin/rmilter -- -c /etc/rmilter/rmilter.conf + eend $? +} + +stop() { + ebegin "Stopping ${SVCNAME}" + start-stop-daemon --stop --quiet --pidfile $PIDFILE + eend $? +} |