Quick test:
# reload the samba server
# We don't necessarily have the samba package installed. #414841
if systemctl is-enabled smbd.service --quiet; then
systemctl reload smbd.service
fi
I just have to understand if we can use systemctl all the way here, or
if I have to check for sysv, upstart and systemd, and choose one.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1579597
Title:
"/etc/dhcp/dhclient-enter-hooks.d/samba returned non-zero exit status
1" when samba.service is disabled
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1579597/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs