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
Server Team, which is subscribed to samba in Ubuntu.
https://bugs.launchpad.net/bugs/494141

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

-- 
Ubuntu-server-bugs mailing list
Ubuntu-server-bugs@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs

Reply via email to