Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-mail/fetchmail/files: fetchmail.new
Date: Fri, 20 Feb 2009 04:26:18
Message-Id: E1LaMxs-0007FZ-3l@stork.gentoo.org
1 darkside 09/02/20 04:26:16
2
3 Added: fetchmail.new
4 Log:
5 (non maintainer commit) don't run fetchmail as root - create new fetchmail user instead, long standing bug in Gentoo. Fixed by Brian Verkley in bug 124387
6 (Portage version: 2.2_rc23/cvs/Linux x86_64)
7
8 Revision Changes Path
9 1.1 net-mail/fetchmail/files/fetchmail.new
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/fetchmail/files/fetchmail.new?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-mail/fetchmail/files/fetchmail.new?rev=1.1&content-type=text/plain
13
14 Index: fetchmail.new
15 ===================================================================
16 #!/sbin/runscript
17
18 pidfile=/var/run/fetchmail/fetchmail.pid
19
20 depend() {
21 need net
22 use mta
23 }
24
25 checkconfig() {
26 if [ ! -f /etc/fetchmailrc ]; then
27 eerror "Configuration file /etc/fetchmailrc not found"
28 return 1
29 fi
30 }
31
32 start() {
33 checkconfig || return 1
34
35 ebegin "Starting fetchmail"
36 start-stop-daemon --start --quiet \
37 --chuid fetchmail --exec /usr/bin/fetchmail \
38 -- -d ${polling_period} -f /etc/fetchmailrc \
39 --pidfile ${pidfile} -i /var/lib/fetchmail/.fetchids
40 eend ${?}
41 }
42
43 stop() {
44 ebegin "Stopping fetchmail"
45 start-stop-daemon --stop --quiet --pidfile ${pidfile}
46 eend ${?}
47 }