chef-cookbooks / runit

Development repository for the Chef Runit Cookbook
https://supermarket.chef.io/cookbooks/runit
Apache License 2.0
107 stars 197 forks source link

Runit doesn't start automatically at system startup anymore (Debian Stretch 9.0) #220

Closed fancyweb closed 6 years ago

fancyweb commented 7 years ago

Cookbook version

3.0.5

Chef-client version

13.1.31

Platform Details

Debian Stretch 9.0

Expected Result:

My created user controlled services should automatically start on system startup.

Actual Result:

They are not running. If I launch them manually this is the message I can see : "Jun 21 12:21:37 stretch es-core-visible[1714]: fail: es-core-visible: runsv not running Jun 21 12:21:37 stretch systemd[1]: Started LSB: initscript for runit-managed es-core-visible service."

So runit was not started on system startup.

Fix and explanation

I'm copying the changelog from runit 2.1.2-4 which was installed :

Remove scripting in runit's maintainer scripts to adjust /etc/inittab. It is provided as separate binary package 'runit-sysv'.

To make it work I did this in my own recipe :

apt_package 'runit-sysv'
jsirex commented 7 years ago

On Debian Stretch systemd is default init system. Probably we should install 'runit-systemd'

tas50 commented 6 years ago

Resolved by https://github.com/chef-cookbooks/runit/pull/224

arkuzo commented 6 years ago

thanx a lot :) So simple and uneven solution :)