Commit Graph

5 Commits

Author SHA1 Message Date
Kumabuchi Kenji
c0bfe0993f init: change restart to on-failure for qdevice
Signed-off-by: Kumabuchi Kenji <k.kumabuchi+curvygrin@gmail.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
2019-09-12 12:25:18 +02:00
Jan Friesse
1965225e3e init: Fix init scripts to work with containers
Previously init scripts were not using pid file so pidof was used. This
is usually not a problem, but when containers are used it may result to
killing improper instance when issued on host.

Solution is to always use pidfile.

Also try to use LSB complaint status codes.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Reviewed-by: Christine Caulfield <ccaulfie@redhat.com>
2018-11-15 17:34:35 +01:00
Jan Friesse
91e31375b5 init: disable stderr output in systemd unit file
Usually both syslog and stderr are enabled so log entries are duplicated
in journal. Solution is to use similar patch as corosync
c34208ad402b45f52b5d3ee8d2a08df0779ec9aa and disable stderr.

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-08-21 15:07:36 +02:00
Jan Friesse
158811557b init: Quote subshell result properly
Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-03-02 13:33:59 +01:00
Jan Friesse
9a1955a7d6 Initial import from corosync codebase
Used the code from corosync master
(31ddba64a2726bcedf81eb84df2e2da4846832f7)

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
2018-01-23 14:24:36 +01:00