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