diff options
Diffstat (limited to 'net-mail/davmail-bin/files/davmail.init')
-rw-r--r-- | net-mail/davmail-bin/files/davmail.init | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/net-mail/davmail-bin/files/davmail.init b/net-mail/davmail-bin/files/davmail.init deleted file mode 100644 index ec6d6c3..0000000 --- a/net-mail/davmail-bin/files/davmail.init +++ /dev/null @@ -1,33 +0,0 @@ -#!/sbin/runscript - -PN="davmail" -USER="${PN}" -PID_FILE="/var/run/${PN}.pid" -RUN_FILE="/usr/bin/${PN}" - -depend() { - need net -} - -checkconfig() { - if [ ! -e ${DAVMAIL_CONF} ]; then - eerror "You need to have a valid configuration file at ${DAVMAIL_CONF}" - return 1 - fi -} - -start() { - checkconfig || return 1 - ebegin "Starting DavMail gateway" - - start-stop-daemon --start --user ${USER} \ - --pidfile ${PID_FILE} --make-pidfile --background \ - --exec ${RUN_FILE} -- ${DAVMAIL_CONF} - eend $? -} - -stop() { - ebegin "Shutting down DavMail gateway" - start-stop-daemon --stop --user ${USER} --pidfile ${PID_FILE} - eend $? -} |