[Pkg-samba-maint] Bug#451270: Make sure $PIDDIR exists (when /var/run is a tmpfs)
Mathias Gug
mathiaz at ubuntu.com
Wed Nov 14 17:44:50 UTC 2007
Package: samba
Version: 3.0.26a-1
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu ubuntu-patch hardy
I've attached a patch to the init script that makes sure that the piddir
exists.
-------------- next part --------------
diff -pruN 3.0.26a-1/debian/samba.init 3.0.26a-1ubuntu2/debian/samba.init
--- 3.0.26a-1/debian/samba.init 2007-10-04 09:08:53.000000000 +0100
+++ 3.0.26a-1ubuntu2/debian/samba.init 2007-10-04 09:08:11.000000000 +0100
@@ -31,6 +31,9 @@ test -x /usr/sbin/nmbd -a -x /usr/sbin/s
case "$1" in
start)
log_daemon_msg "Starting Samba daemons"
+ # Make sure we have our PIDDIR, even if it's on a tmpfs
+ install -o root -g root -m 755 -d $PIDDIR
+
NMBD_DISABLED=`testparm -s --parameter-name='disable netbios' 2>/dev/null`
if [ "$NMBD_DISABLED" != 'Yes' ]; then
log_progress_msg "nmbd"
More information about the Pkg-samba-maint
mailing list