fix sysv init script

This commit is contained in:
Andrew A. Vasilyev 2019-05-07 15:47:45 +03:00
parent 12d8c04efa
commit 04e9cd43ea

View File

@ -1,20 +1,20 @@
#!/bin/sh
#
# fence-virtd Virtual Machine Fencing host daemon.
# fence_virtd Virtual Machine Fencing host daemon.
#
# chkconfig: 2345 98 01
# description: Fence_virtd is a fencing host daemon which routes fencing \
# requests from clusters of virtual machines to various \
# management layers.
# processname: fence-virtd
# config: /etc/fence-virtd.conf
# pidfile: /var/run/fence-virtd.pid
# processname: fence_virtd
# config: /etc/fence_virt.conf
# pidfile: /var/run/fence_virtd.pid
### BEGIN INIT INFO
# Provides: fence_virtd
# Required-Start: network
# Required-Stop:
# Should-Start: fence-virtd
# Should-Start: libvirtd
# Should-Stop:
# Default-Start:
# Default-Stop:
@ -28,12 +28,13 @@ WITHOUT_RC_COMPAT=1
# Source function library.
. /etc/init.d/functions
SERVICE=fence_virtd
PIDFILE=/var/run/$SERVICE.pid
LOCKFILE=/var/lock/subsys/$SERVICE
FENCE_VIRTD_ARGS="-w"
SourceIfNotEmpty /etc/sysconfig/fence-virtd
SourceIfNotEmpty /etc/sysconfig/fence_virtd
RETVAL=0