From b6e8169ac9cb745eee780215a0242837ac61dff1 Mon Sep 17 00:00:00 2001 From: John Terpstra Date: Thu, 31 Oct 2002 04:33:17 +0000 Subject: Applying Buchan Milne's patches. (This used to be commit 43f270b4909b363db50239e61184e057c96106b9) --- packaging/Mandrake/smb.init | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'packaging/Mandrake/smb.init') diff --git a/packaging/Mandrake/smb.init b/packaging/Mandrake/smb.init index 8855f04efb..bdc1518709 100755 --- a/packaging/Mandrake/smb.init +++ b/packaging/Mandrake/smb.init @@ -1,6 +1,6 @@ #!/bin/sh # -# chkconfig: - 91 35 +# chkconfig: 35 91 9 # description: Starts and stops the Samba smbd and nmbd daemons \ # used to provide SMB network services. @@ -26,6 +26,12 @@ RETVAL=0 start() { + # If CUPS is used as printing system, reload smb after a 1 minute delay + # to allow the printers to appear properly as samba shares. + if killall -0 cupsd 2>/dev/null; then + ( sleep 60 && killproc smbd -HUP ) & + fi + export TMPDIR="/var/tmp" echo -n "Starting SMB services: " daemon smbd -D RETVAL=$? @@ -55,6 +61,7 @@ restart() { start } reload() { + export TMPDIR="/var/tmp" echo -n "Reloading smb.conf file: " killproc smbd -HUP RETVAL=$? -- cgit