summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-fs/samba/files/3.4/samba.initd')
-rw-r--r--net-fs/samba/files/3.4/samba.initd10
1 files changed, 8 insertions, 2 deletions
diff --git a/net-fs/samba/files/3.4/samba.initd b/net-fs/samba/files/3.4/samba.initd
index 9987f1ed6f53..2815e4ecfbe6 100644
--- a/net-fs/samba/files/3.4/samba.initd
+++ b/net-fs/samba/files/3.4/samba.initd
@@ -1,7 +1,7 @@
#!/sbin/runscript
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.4/samba.initd,v 1.1 2010/02/26 20:11:18 patrick Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.4/samba.initd,v 1.2 2010/12/20 20:35:07 vostorga Exp $
opts="reload"
@@ -32,8 +32,14 @@ signal_do() {
done
return ${result}
}
+
+mkdir_sambadirs() {
+ [ -d /var/run/samba ] || mkdir -p /var/run/samba
+}
+
start() {
${my_service_PRE}
+ mkdir_sambadirs
signal_do start && return 0
eerror "Error: starting services (see system logs)"