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)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/494141

Title:
  CUPS starts after SAMBA; printers are not available (convert cups to
  upstart)

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to