Debian 8 service consists of 3 services #5
Description
Expected Behavior
Puppet should restart / reload the service after changing configuration.
Actual Behavior
Running puppet with changed configuration causes the following error
Error: Execution of '/usr/sbin/update-rc.d samba enable' returned 1: update-rc.d: error: samba Default-Start contains no runlevels, aborting. Error: /Stage[main]/Samba/Service[samba]/enable: change from false to true failed: Execution of '/usr/sbin/update-rc.d samba enable' returned 1: update-rc.d: error: samba Default-Start contains no runlevels, aborting.
The problem is, that in Debian 8 /etc/init.d/samba
is only kind of a placeholder for the actual services smbd
, nmbd
and samba-ad-dc
. As the error message states, it is missing any information about runlevels. It can be used by a user to determin the status, start, stop etc. the service, but puppet service type needs the runlevels.
I propose that the module need to add all three services for Debian 8. For checking the status, it can use /etc/init.d/samba
.