From e318f7eac680691aa974f0860075cadb69036b43 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 29 May 2009 09:18:30 +0000 Subject: extra/fetchmail: renamed fetchmail.initd --- extra/fetchmail/fetchmail.initd | 30 ++++++++++++++++++++++++++++++ extra/fetchmail/fetchmail.initrd | 30 ------------------------------ 2 files changed, 30 insertions(+), 30 deletions(-) create mode 100755 extra/fetchmail/fetchmail.initd delete mode 100755 extra/fetchmail/fetchmail.initrd (limited to 'extra') diff --git a/extra/fetchmail/fetchmail.initd b/extra/fetchmail/fetchmail.initd new file mode 100755 index 00000000..30eea503 --- /dev/null +++ b/extra/fetchmail/fetchmail.initd @@ -0,0 +1,30 @@ +#!/sbin/runscript + +depend() { + need net + use mta +} + +checkconfig() { + if [ ! -f /etc/fetchmailrc ]; then + eerror "Configuration file /etc/fetchmailrc not found" + return 1 + fi +} + +start() { + checkconfig || return 1 + + ebegin "Starting fetchmail" + start-stop-daemon --start --quiet --exec /usr/bin/fetchmail \ + --chuid ${USER:-fetchmail}:${GROUP:-fetchmail} \ + -- -d ${polling_period} -f /etc/fetchmailrc + eend ${?} +} + +stop() { + ebegin "Stopping fetchmail" + start-stop-daemon --stop --quiet --pidfile /var/run/fetchmail.pid + eend ${?} +} + diff --git a/extra/fetchmail/fetchmail.initrd b/extra/fetchmail/fetchmail.initrd deleted file mode 100755 index 30eea503..00000000 --- a/extra/fetchmail/fetchmail.initrd +++ /dev/null @@ -1,30 +0,0 @@ -#!/sbin/runscript - -depend() { - need net - use mta -} - -checkconfig() { - if [ ! -f /etc/fetchmailrc ]; then - eerror "Configuration file /etc/fetchmailrc not found" - return 1 - fi -} - -start() { - checkconfig || return 1 - - ebegin "Starting fetchmail" - start-stop-daemon --start --quiet --exec /usr/bin/fetchmail \ - --chuid ${USER:-fetchmail}:${GROUP:-fetchmail} \ - -- -d ${polling_period} -f /etc/fetchmailrc - eend ${?} -} - -stop() { - ebegin "Stopping fetchmail" - start-stop-daemon --stop --quiet --pidfile /var/run/fetchmail.pid - eend ${?} -} - -- cgit v1.2.3