I am specifically setting the service provider with $::hubot::init_style to avoid not having the service enabled with distributions that have both init daemon and systemd daemon like Debian 8.
On Debian 8, if you don't specify the provider for the hubot service but set the init_style to systemd, the hubot service doesn't get enabled automatically:
I am specifically setting the service provider with
$::hubot::init_style
to avoid not having the service enabled with distributions that have both init daemon and systemd daemon like Debian 8. On Debian 8, if you don't specify the provider for the hubot service but set theinit_style
tosystemd
, the hubot service doesn't get enabled automatically:By setting the service provider to 'systemd' with '
$::hubot::init_style
', the hubot service does get enabled automatically: