- cups is still an old sysvinit script;
- samba is an upstart job but doesn't have any dependencies on cups.
Moreover I think it's the samba upstart job that should assert "start after cups", and not cups to worry about starting before samba. So for sure this actually a deficiency in the samba upstart job. Not clear to me if it can be solved before cups becomes an upstart job too.
If you want a temporary workaround, put a:
sleep 10
just after "pre start script" in /etc/init/smbd.conf.
Actually, I needed to put the same waiting time in /etc/init/nmbd.conf otherwise the master domain browser was nonfunctional, so it seems there are some dependencies nmbd <-> smbd (don't know the correct verse) unsatisfied.
2 problems here:
- cups is still an old sysvinit script;
- samba is an upstart job but doesn't have any dependencies on cups.
Moreover I think it's the samba upstart job that should assert "start after cups", and not cups to worry about starting before samba. So for sure this actually a deficiency in the samba upstart job. Not clear to me if it can be solved before cups becomes an upstart job too.
If you want a temporary workaround, put a:
sleep 10
just after "pre start script" in /etc/init/ smbd.conf.
Actually, I needed to put the same waiting time in /etc/init/nmbd.conf otherwise the master domain browser was nonfunctional, so it seems there are some dependencies nmbd <-> smbd (don't know the correct verse) unsatisfied.