Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Debian 8 service consists of 3 services #5

Open
dagobert opened this issue Jun 20, 2016 · 0 comments
Open

Debian 8 service consists of 3 services #5

dagobert opened this issue Jun 20, 2016 · 0 comments

Comments

@dagobert
Copy link
Contributor

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant