diff options
author | John Terpstra <jht@samba.org> | 2002-10-30 03:50:23 +0000 |
---|---|---|
committer | John Terpstra <jht@samba.org> | 2002-10-30 03:50:23 +0000 |
commit | a207251c2fb3145201e4bbd770bb0d79c7180eb5 (patch) | |
tree | b12fc36f2111e3f5308c9cb87c0a9e119464e7bf /packaging/Mandrake/smb.init | |
parent | 0d929993c8805785389f58605a2b0bc717eca27c (diff) | |
download | samba-a207251c2fb3145201e4bbd770bb0d79c7180eb5.tar.gz samba-a207251c2fb3145201e4bbd770bb0d79c7180eb5.tar.bz2 samba-a207251c2fb3145201e4bbd770bb0d79c7180eb5.zip |
Adding Buchan Milne's updates.
(This used to be commit d816c35c1d8db343c76a32a6d01952d2c192b092)
Diffstat (limited to 'packaging/Mandrake/smb.init')
-rwxr-xr-x | packaging/Mandrake/smb.init | 9 |
1 files changed, 8 insertions, 1 deletions
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=$? |