Systemd should start runit after the network is UP

This commit is contained in:
Monocots 2019-09-11 09:49:00 +00:00
parent 5f7a942782
commit f892dd4254
2 changed files with 20 additions and 0 deletions

View file

@ -0,0 +1,14 @@
[Unit]
Description=Runit service supervision
Documentation=http://smarden.org/runit/
After=network-online.target
Wants=network-online.target
[Service]
ExecStart=/etc/runit/2
KillSignal=SIGHUP
KillMode=process
Restart=always
[Install]
WantedBy=multi-user.target

View file

@ -11,6 +11,12 @@
# Sample Usage:
#
class rhizo_base::runit {
file { '/lib/systemd/system/runit.service':
ensure => present,
source => 'puppet:///modules/rhizo_base/systemd/runit.service',
}
file { '/etc/sv':
ensure => directory,
source => 'puppet:///modules/rhizo_base/etc/sv',