Comment 44 for bug 494141

Revision history for this message
Clint Byrum (clint-fewbar) wrote :

There's a way to do this in lucid without modifying samba at all.

# cups-sysv

start on starting smbd
stop on stopped smbd

pre-start script
  invoke-rc.d cups start || :
end script

post-stop script
  invoke-rc.d cups stop || :
end script
#EOF

This will ensure that cups is started before smbd. It will also introduce an error when we try to start/stop it again during rc2.d .. but that shouldn't be more than a nuisance (and we could always remove it from rc2.d in this pre-start)