mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
service_stop is a legacy function and it should never be used with procd services which are automatically stopped by /etc/rc.common Also remove unnecessary boot() which just runs the "start" function.
24 lines
314 B
Bash
Executable file
24 lines
314 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
#
|
|
# Start the imonitor
|
|
#
|
|
|
|
START=99
|
|
STOP=01
|
|
|
|
USE_PROCD=1
|
|
NAME=imonitor
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command "imonitor"
|
|
procd_set_param stdout 1
|
|
procd_set_param stderr 1
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|
|
|
|
reload_service() {
|
|
stop
|
|
start
|
|
}
|