From: | "Patrick Lauer (patrick)" <patrick@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-fs/samba/files: samba-init |
Date: | Tue, 11 May 2010 11:53:31 |
Message-Id: | 20100511115325.092B22C04D@corvid.gentoo.org |
1 | patrick 10/05/11 11:53:24 |
2 | |
3 | Modified: samba-init |
4 | Log: |
5 | Fixing init script for #301263 |
6 | (Portage version: 2.2_rc67/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.18 net-fs/samba/files/samba-init |
10 | |
11 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?rev=1.18&view=markup |
12 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?rev=1.18&content-type=text/plain |
13 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-fs/samba/files/samba-init?r1=1.17&r2=1.18 |
14 | |
15 | Index: samba-init |
16 | =================================================================== |
17 | RCS file: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v |
18 | retrieving revision 1.17 |
19 | retrieving revision 1.18 |
20 | diff -u -r1.17 -r1.18 |
21 | --- samba-init 11 Sep 2007 22:55:08 -0000 1.17 |
22 | +++ samba-init 11 May 2010 11:53:24 -0000 1.18 |
23 | @@ -1,7 +1,7 @@ |
24 | #!/sbin/runscript |
25 | # Copyright 1999-2007 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License, v2 or later |
27 | -# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.17 2007/09/11 22:55:08 uberlord Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.18 2010/05/11 11:53:24 patrick Exp $ |
29 | |
30 | opts="reload" |
31 | |
32 | @@ -33,6 +33,8 @@ |
33 | return ${result} |
34 | } |
35 | start() { |
36 | + # we can't assume that /var/run/ is persistent, so create dir if needed |
37 | + [ ! -e /var/run/samba ] && mkdir /var/run/samba |
38 | ${my_service_PRE} |
39 | signal_do start && return 0 |