rulend: start with procd

This commit is contained in:
Sukru Senli 2018-02-10 13:30:26 +01:00
parent e35d1ca5ef
commit 84896fcc28

View file

@ -3,18 +3,30 @@
# Start the rulengd # Start the rulengd
# #
START=100 START=99
PID_FILE=/var/state/rulengd.pid STOP=01
start() { USE_PROCD=1
start-stop-daemon -S -b -m -p $PID_FILE -x /usr/bin/rulengd -- -r ruleng NAME=rulengd
start_service() {
procd_open_instance
procd_set_param command "rulengd" -r ruleng
procd_set_param respawn
procd_close_instance
} }
stop() { stop() {
start-stop-daemon -K -p $PID_FILE service_stop rulengd
} }
restart() { service_triggers()
{
procd_add_reload_trigger ruleng
}
reload_service() {
stop stop
start start
} }