if status cups >/dev/null ; then start wait-for-state WAITER=smbd WAIT_FOR=cups WAIT_STATE=running
fi
This solution has the effect that if the cups job is broken for any reason, smbd will also not be started. I don't think that's desirable.
We've tried hard in the past to ensure samba is *not* dependent on cups being present before samba starts. I think this would be better done as a job in the samba package which is 'start on started cups' and will prompt samba to reload its config.
Hi James,
if status cups >/dev/null ; then
start wait-for-state WAITER=smbd WAIT_FOR=cups WAIT_STATE=running
fi
This solution has the effect that if the cups job is broken for any reason, smbd will also not be started. I don't think that's desirable.
We've tried hard in the past to ensure samba is *not* dependent on cups being present before samba starts. I think this would be better done as a job in the samba package which is 'start on started cups' and will prompt samba to reload its config.