Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 124387 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/net-mail/fetchmail/files/fetchmail.old (-3 / +7 lines)
Lines 1-5 Link Here
1
#!/sbin/runscript
1
#!/sbin/runscript
2
2
3
pidfile=/var/run/fetchmail/fetchmail.pid
4
3
depend() {
5
depend() {
4
	need net
6
	need net
5
	use mta
7
	use mta
Lines 16-29 Link Here
16
        checkconfig || return 1
18
        checkconfig || return 1
17
19
18
        ebegin "Starting fetchmail"
20
        ebegin "Starting fetchmail"
19
        start-stop-daemon --start --quiet --exec /usr/bin/fetchmail \
21
        start-stop-daemon --start --quiet \
20
                -- -d ${polling_period} -f /etc/fetchmailrc
22
		--chuid fetchmail --exec /usr/bin/fetchmail \
23
		-- -d ${polling_period} -f /etc/fetchmailrc \
24
		--pidfile ${pidfile} -i /var/lib/fetchmail/.fetchids
21
        eend ${?}
25
        eend ${?}
22
}
26
}
23
27
24
stop() {
28
stop() {
25
        ebegin "Stopping fetchmail"
29
        ebegin "Stopping fetchmail"
26
        start-stop-daemon --stop --quiet --pidfile /var/run/fetchmail.pid
30
        start-stop-daemon --stop --quiet --pidfile ${pidfile}
27
        eend ${?}
31
        eend ${?}
28
}
32
}
29
33

Return to bug 124387