summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Lauer <patrick@gentoo.org>2010-05-11 11:53:24 +0000
committerPatrick Lauer <patrick@gentoo.org>2010-05-11 11:53:24 +0000
commitf9cab1bd7d80a26ab366a9c25209f76da08158fb (patch)
tree3d4db038a0f8d66f1e876cfa342487dba06d8753 /net-fs/samba
parentVersion bump. (diff)
downloadgentoo-2-f9cab1bd7d80a26ab366a9c25209f76da08158fb.tar.gz
gentoo-2-f9cab1bd7d80a26ab366a9c25209f76da08158fb.tar.bz2
gentoo-2-f9cab1bd7d80a26ab366a9c25209f76da08158fb.zip
Fixing init script for #301263
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-fs/samba')
-rw-r--r--net-fs/samba/ChangeLog5
-rw-r--r--net-fs/samba/files/samba-init4
2 files changed, 7 insertions, 2 deletions
diff --git a/net-fs/samba/ChangeLog b/net-fs/samba/ChangeLog
index ae69196cf5aa..6663d8eb47a6 100644
--- a/net-fs/samba/ChangeLog
+++ b/net-fs/samba/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-fs/samba
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.412 2010/05/11 11:27:47 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/ChangeLog,v 1.413 2010/05/11 11:53:24 patrick Exp $
+
+ 11 May 2010; Patrick Lauer <patrick@gentoo.org> files/samba-init:
+ Fixing init script for #301263
11 May 2010; Patrick Lauer <patrick@gentoo.org> samba-3.4.6.ebuild,
samba-3.4.8.ebuild, samba-3.5.2-r1.ebuild:
diff --git a/net-fs/samba/files/samba-init b/net-fs/samba/files/samba-init
index bdefea63ecc6..9347b8159087 100644
--- a/net-fs/samba/files/samba-init
+++ b/net-fs/samba/files/samba-init
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.17 2007/09/11 22:55:08 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.18 2010/05/11 11:53:24 patrick Exp $
opts="reload"
@@ -33,6 +33,8 @@ signal_do() {
return ${result}
}
start() {
+ # we can't assume that /var/run/ is persistent, so create dir if needed
+ [ ! -e /var/run/samba ] && mkdir /var/run/samba
${my_service_PRE}
signal_do start && return 0