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: Mon, 27 Jan 2014 08:58:13
Message-Id: 20140127085809.35AA82004C@flycatcher.gentoo.org
1 dlan 14/01/27 08:58:09
2
3 Modified: xenstored.initd
4 Log:
5 fix QA warning, create /var/run/,/var/lock dynamically
6
7 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0xAABEFD55)
8
9 Revision Changes Path
10 1.13 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.13&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?rev=1.13&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/xen-tools/files/xenstored.initd?r1=1.12&r2=1.13
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.12
20 retrieving revision 1.13
21 diff -u -r1.12 -r1.13
22 --- xenstored.initd 7 Dec 2013 06:49:41 -0000 1.12
23 +++ xenstored.initd 27 Jan 2014 08:58:09 -0000 1.13
24 @@ -1,5 +1,5 @@
25 #!/sbin/runscript
26 -# Copyright 1999-2013 Gentoo Foundation
27 +# Copyright 1999-2014 Gentoo Foundation
28 # Distributed under the terms of the GNU General Public License v2
29
30 depend() {
31 @@ -8,7 +8,11 @@
32 }
33
34 start() {
35 - [ -x /run/xen ] || mkdir -p /run/xen
36 + # create dir dynamically
37 + for i in /var/lock/subsys /run/xen /run/xend/boot /run/xenstored; do
38 + [ -x $i ] || mkdir -p $i
39 + done
40 +
41 ebegin "Starting xenstored daemon"
42 start-stop-daemon --start --exec /usr/sbin/xenstored \
43 --pidfile /run/xenstored.pid \