mirror of https://github.com/sipwise/heartbeat.git
The changes we did to make them order correctly with sysvinit do not get picked up automatically as systemd's sysvinit generator does not understand the $all facility nor insserv overrides. Change-Id: I1fc2d2c427454c1591ddb5eab38e00b9f15e50c5changes/35/18335/3
parent
17e898c596
commit
f116e449b1
@ -0,0 +1,26 @@
|
||||
[Unit]
|
||||
Description=Heartbeat Watchdog for High-Availability Linux
|
||||
Documentation=man:heartbeat(8)
|
||||
DefaultDependencies=no
|
||||
Before=graphical.target
|
||||
After=network-online.target
|
||||
After=heartbeat.service
|
||||
After=monit.service
|
||||
Requires=monit.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Restart=no
|
||||
TimeoutSec=5min
|
||||
IgnoreSIGPIPE=no
|
||||
KillMode=process
|
||||
GuessMainPID=no
|
||||
RemainAfterExit=yes
|
||||
SuccessExitStatus=5 6
|
||||
ExecStart=/etc/init.d/hb_watchdog start
|
||||
ExecStop=/etc/init.d/hb_watchdog stop
|
||||
|
||||
[Install]
|
||||
# XXX: This is a hack.
|
||||
WantedBy=graphical.target
|
||||
@ -0,0 +1,29 @@
|
||||
[Unit]
|
||||
Description=Heartbeat subsystem for High-Availability Linux
|
||||
Documentation=man:heartbeat(8)
|
||||
DefaultDependencies=no
|
||||
Requires=monit.service
|
||||
Before=graphical.target
|
||||
After=monit.service
|
||||
After=network-online.target
|
||||
After=time-sync.target
|
||||
After=openhpid.service
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
Restart=no
|
||||
TimeoutSec=5min
|
||||
IgnoreSIGPIPE=no
|
||||
KillMode=process
|
||||
GuessMainPID=no
|
||||
RemainAfterExit=no
|
||||
PIDFile=/var/run/heartbeat.pid
|
||||
SuccessExitStatus=5 6
|
||||
ExecStart=/etc/init.d/heartbeat start
|
||||
ExecStop=/etc/init.d/heartbeat stop
|
||||
ExecReload=/etc/init.d/heartbeat reload
|
||||
|
||||
[Install]
|
||||
# XXX: This is a hack.
|
||||
WantedBy=graphical.target
|
||||
Loading…
Reference in new issue