keepalived: convert init script to procd format
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
This commit is contained in:
parent
e40ba7cc8e
commit
e5c3d4433f
1 changed files with 10 additions and 6 deletions
|
@ -2,13 +2,17 @@
|
||||||
# Copyright (C) 2007-2015 OpenWrt.org
|
# Copyright (C) 2007-2015 OpenWrt.org
|
||||||
|
|
||||||
START=70
|
START=70
|
||||||
|
STOP=01
|
||||||
|
|
||||||
SERVICE_USE_PID=1
|
USE_PROCD=1
|
||||||
|
|
||||||
start() {
|
start_service() {
|
||||||
service_start /usr/sbin/keepalived
|
procd_open_instance
|
||||||
|
procd_set_param command /usr/sbin/keepalived
|
||||||
|
procd_append_param command -n # don't daemonize, procd will handle that for us
|
||||||
|
|
||||||
|
# set auto respawn behavior
|
||||||
|
procd_set_param respawn
|
||||||
|
procd_close_instance
|
||||||
}
|
}
|
||||||
|
|
||||||
stop() {
|
|
||||||
service_stop /usr/sbin/keepalived
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in a new issue