Gentoo Archives: gentoo-commits

From: "Yixun Lan (dlan)" <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/xen-tools/files: xenstored.initd
Date: Tue, 28 Jan 2014 08:25:53
Message-Id: 20140128082549.CB20C2004E@flycatcher.gentoo.org
1 dlan 14/01/28 08:25:49
2
3 Modified: xenstored.initd
4 Log:
5 fix local variable collision, thanks Cyril Nahon
6
7 (Portage version: 2.2.8/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
8
9 Revision Changes Path
10 1.14 app-emulation/xen-tools/files/xenstored.initd
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?rev=1.14&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?rev=1.14&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?r1=1.13&r2=1.14
15
16 Index: xenstored.initd
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd,v
19 retrieving revision 1.13
20 retrieving revision 1.14
21 diff -u -r1.13 -r1.14
22 --- xenstored.initd 27 Jan 2014 08:58:09 -0000 1.13
23 +++ xenstored.initd 28 Jan 2014 08:25:49 -0000 1.14
24 @@ -7,13 +7,17 @@
25 need xencommons
26 }
27
28 -start() {
29 +xenstored_dir_check() {
30 # create dir dynamically
31 + local i
32 for i in /var/lock/subsys /run/xen /run/xend/boot /run/xenstored; do
33 [ -x $i ] || mkdir -p $i
34 done
35 +}
36
37 +start() {
38 ebegin "Starting xenstored daemon"
39 + xenstored_dir_check
40 start-stop-daemon --start --exec /usr/sbin/xenstored \
41 --pidfile /run/xenstored.pid \
42 -- --pid-file=/run/xenstored.pid \