aboutsummaryrefslogtreecommitdiffstats
path: root/main/fetchmail/fetchmail.initd
diff options
context:
space:
mode:
Diffstat (limited to 'main/fetchmail/fetchmail.initd')
-rwxr-xr-xmain/fetchmail/fetchmail.initd10
1 files changed, 6 insertions, 4 deletions
diff --git a/main/fetchmail/fetchmail.initd b/main/fetchmail/fetchmail.initd
index 8fd5adf0ac..ad826ec850 100755
--- a/main/fetchmail/fetchmail.initd
+++ b/main/fetchmail/fetchmail.initd
@@ -1,5 +1,7 @@
#!/sbin/openrc-run
+description="Remote mail retrieval and forwarding"
+
pidfile=/var/run/fetchmail/fetchmail.pid
depend() {
@@ -9,8 +11,8 @@ depend() {
}
checkconfig() {
- if [ ! -f /etc/fetchmailrc ]; then
- eerror "Configuration file /etc/fetchmailrc not found"
+ if [ ! -f "${CFGFILE}" ]; then
+ eerror "Configuration file ${CFGFILE} not found"
return 1
fi
}
@@ -22,8 +24,8 @@ start() {
ebegin "Starting fetchmail"
start-stop-daemon --start --quiet \
--user fetchmail --exec /usr/bin/fetchmail \
- -- -d ${polling_period:-300} -f /etc/fetchmailrc \
- --pidfile ${pidfile} -i /var/lib/fetchmail/.fetchids
+ --pidfile ${pidfile} -i /var/lib/fetchmail/.fetchids \
+ -- -f "${CFGFILE}" ${FETCHMAIL_OPTS}
eend ${?}
}