From: | "Robin H. Johnson (robbat2)" <robbat2@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-power/nut/files: upsd.rc6 |
Date: | Tue, 09 Oct 2007 00:52:25 |
Message-Id: | E1If3BN-0006hz-Ul@stork.gentoo.org |
1 | robbat2 07/10/09 00:42:45 |
2 | |
3 | Modified: upsd.rc6 |
4 | Log: |
5 | Fix bug #195125 for pidfile locations. |
6 | (Portage version: 2.1.3.12) |
7 | |
8 | Revision Changes Path |
9 | 1.3 sys-power/nut/files/upsd.rc6 |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/files/upsd.rc6?rev=1.3&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/files/upsd.rc6?rev=1.3&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/files/upsd.rc6?r1=1.2&r2=1.3 |
14 | |
15 | Index: upsd.rc6 |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v |
18 | retrieving revision 1.2 |
19 | retrieving revision 1.3 |
20 | diff -u -r1.2 -r1.3 |
21 | --- upsd.rc6 25 Apr 2007 05:38:46 -0000 1.2 |
22 | +++ upsd.rc6 9 Oct 2007 00:42:45 -0000 1.3 |
23 | @@ -1,9 +1,10 @@ |
24 | #!/sbin/runscript |
25 | # Copyright 1999-2004 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v 1.2 2007/04/25 05:38:46 dragonheart Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sys-power/nut/files/upsd.rc6,v 1.3 2007/10/09 00:42:45 robbat2 Exp $ |
29 | |
30 | opts="reload" |
31 | +pidfile=/var/lib/nut/upsd.pid |
32 | |
33 | depend() { |
34 | need net upsdrv |
35 | @@ -15,7 +16,7 @@ |
36 | # clean up first |
37 | pkill -u root -x upsd |
38 | sleep 1s |
39 | - rm -f /var/state/nut/upsd.pid |
40 | + rm -f ${pidfile} |
41 | # now start up |
42 | start-stop-daemon --start --quiet --exec /usr/sbin/upsd |
43 | eend $? |
44 | @@ -23,12 +24,12 @@ |
45 | |
46 | stop() { |
47 | ebegin "Stopping upsd" |
48 | - start-stop-daemon --stop --quiet --pidfile /var/lib/nut/upsd.pid |
49 | + start-stop-daemon --stop --quiet --pidfile ${pidfile} |
50 | eend $? |
51 | } |
52 | |
53 | reload() { |
54 | ebegin "Reloading upsd" |
55 | - start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile /var/lib/nut/upsd.pid |
56 | + start-stop-daemon --stop --signal HUP --oknodo --quiet --pidfile ${pidfile} |
57 | eend $? |
58 | } |
59 | |
60 | |
61 | |
62 | -- |
63 | gentoo-commits@g.o mailing list |