Gentoo Archives: gentoo-commits

From: "Jeroen Roovers (jer)" <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/symon/files: symon-init.d symux-init.d
Date: Tue, 24 Jun 2014 01:31:16
Message-Id: 20140624013106.E453E2004F@flycatcher.gentoo.org
1 jer 14/06/24 01:31:06
2
3 Modified: symon-init.d symux-init.d
4 Log:
5 Fix init scripts (opts / --oknodo / /var/run) by Torbjörn Lönnemark (bug #514452).
6
7 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key A792A613)
8
9 Revision Changes Path
10 1.4 net-analyzer/symon/files/symon-init.d
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/symon/files/symon-init.d?rev=1.4&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/symon/files/symon-init.d?rev=1.4&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/symon/files/symon-init.d?r1=1.3&r2=1.4
15
16 Index: symon-init.d
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symon-init.d,v
19 retrieving revision 1.3
20 retrieving revision 1.4
21 diff -u -r1.3 -r1.4
22 --- symon-init.d 13 Sep 2012 07:07:53 -0000 1.3
23 +++ symon-init.d 24 Jun 2014 01:31:06 -0000 1.4
24 @@ -1,9 +1,9 @@
25 #!/sbin/runscript
26 -# Copyright 1999-2012 Gentoo Foundation
27 +# Copyright 1999-2014 Gentoo Foundation
28 # Distributed under the terms of the 2-clause BSD license
29 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symon-init.d,v 1.3 2012/09/13 07:07:53 pinkbyte Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symon-init.d,v 1.4 2014/06/24 01:31:06 jer Exp $
31
32 -opts="${opts} reload"
33 +extra_started_commands="reload"
34
35 depend() {
36 after bootmisc
37 @@ -13,8 +13,10 @@
38
39 reload() {
40 ebegin "Reloading symon"
41 - start-stop-daemon --stop --pidfile /var/run/symon.pid \
42 - --exec /usr/sbin/symon --oknodo --signal HUP
43 + start-stop-daemon \
44 + --pidfile /run/symon.pid \
45 + --exec /usr/sbin/symon \
46 + --signal HUP
47 eend $?
48 }
49
50 @@ -26,6 +28,6 @@
51
52 stop() {
53 ebegin "Stopping symon"
54 - start-stop-daemon --stop --pidfile /var/run/symon.pid
55 + start-stop-daemon --stop --pidfile /run/symon.pid
56 eend $?
57 }
58
59
60
61 1.4 net-analyzer/symon/files/symux-init.d
62
63 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/symon/files/symux-init.d?rev=1.4&view=markup
64 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/symon/files/symux-init.d?rev=1.4&content-type=text/plain
65 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/symon/files/symux-init.d?r1=1.3&r2=1.4
66
67 Index: symux-init.d
68 ===================================================================
69 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symux-init.d,v
70 retrieving revision 1.3
71 retrieving revision 1.4
72 diff -u -r1.3 -r1.4
73 --- symux-init.d 13 Sep 2012 07:07:53 -0000 1.3
74 +++ symux-init.d 24 Jun 2014 01:31:06 -0000 1.4
75 @@ -1,9 +1,9 @@
76 #!/sbin/runscript
77 -# Copyright 1999-2012 Gentoo Foundation
78 +# Copyright 1999-2014 Gentoo Foundation
79 # Distributed under the terms of the 2-clause BSD license
80 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symux-init.d,v 1.3 2012/09/13 07:07:53 pinkbyte Exp $
81 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/symon/files/symux-init.d,v 1.4 2014/06/24 01:31:06 jer Exp $
82
83 -opts="${opts} reload"
84 +extra_started_commands="reload"
85
86 depend() {
87 after bootmisc
88 @@ -13,8 +13,10 @@
89
90 reload() {
91 ebegin "Reloading symux"
92 - start-stop-daemon --stop --pidfile /var/run/symux.pid \
93 - --exec /usr/sbin/symux --oknodo --signal HUP
94 + start-stop-daemon \
95 + --pidfile /run/symux.pid \
96 + --exec /usr/sbin/symux \
97 + --signal HUP
98 eend $?
99 }
100
101 @@ -26,6 +28,6 @@
102
103 stop() {
104 ebegin "Stopping symux"
105 - start-stop-daemon --stop --pidfile /var/run/symux.pid
106 + start-stop-daemon --stop --pidfile /run/symux.pid
107 eend $?
108 }