diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-27 13:46:06 +0000 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-08-27 13:56:18 +0000 |
commit | c5b50e71313cdaec7eff29aa946dde80fd7e3ef8 (patch) | |
tree | 6a1ded8840f8a35ead63725968793e78aa764904 /unmaintained/dbmail/dbmail-pop3d.initd | |
parent | c3525747ebdf961237120368968150d824f6c017 (diff) | |
download | aports-c5b50e71313cdaec7eff29aa946dde80fd7e3ef8.tar.bz2 aports-c5b50e71313cdaec7eff29aa946dde80fd7e3ef8.tar.xz |
testing/dbmail: move to unmaintained
Diffstat (limited to 'unmaintained/dbmail/dbmail-pop3d.initd')
-rw-r--r-- | unmaintained/dbmail/dbmail-pop3d.initd | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/unmaintained/dbmail/dbmail-pop3d.initd b/unmaintained/dbmail/dbmail-pop3d.initd new file mode 100644 index 0000000000..372c19ad99 --- /dev/null +++ b/unmaintained/dbmail/dbmail-pop3d.initd @@ -0,0 +1,39 @@ +#!/sbin/openrc-run +# + +PIDFILE="/var/run/dbmail/pop3d.pid" + +depend() { + need net + use mysql + use pgsql + after mta +} + +checkconfig() { + if [ ! -e "/etc/dbmail.conf" ]; then + eerror "You need to create apropriate config" + eerror "/etc/dbmail.conf" + return 1 + fi + # Avoid using root's TMPDIR + unset TMPDIR +} + +start() { + checkconfig && \ + ebegin "Starting DBMail POP3 daemon" + start-stop-daemon --start --quiet \ + --exec /usr/sbin/dbmail-pop3d \ + --name dbmail-pop3d \ + -- -p ${PIDFILE} -f /etc/dbmail.conf 2>&1 + eend $? +} + +stop() { + ebegin "Stopping DBMail POP3 daemon" + start-stop-daemon --stop --quiet --retry 5 \ + --pidfile ${PIDFILE} + eend $? +} + |