Systemd should start runit after the network is UP
This commit is contained in:
parent
5f7a942782
commit
f892dd4254
2 changed files with 20 additions and 0 deletions
14
modules/rhizo_base/files/systemd/runit.service
Normal file
14
modules/rhizo_base/files/systemd/runit.service
Normal 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
|
|
@ -11,6 +11,12 @@
|
||||||
# Sample Usage:
|
# Sample Usage:
|
||||||
#
|
#
|
||||||
class rhizo_base::runit {
|
class rhizo_base::runit {
|
||||||
|
|
||||||
|
file { '/lib/systemd/system/runit.service':
|
||||||
|
ensure => present,
|
||||||
|
source => 'puppet:///modules/rhizo_base/systemd/runit.service',
|
||||||
|
}
|
||||||
|
|
||||||
file { '/etc/sv':
|
file { '/etc/sv':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
source => 'puppet:///modules/rhizo_base/etc/sv',
|
source => 'puppet:///modules/rhizo_base/etc/sv',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue