mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
31 lines
437 B
Bash
Executable file
31 lines
437 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
|
|
START=60
|
|
STOP=10
|
|
|
|
USE_PROCD=1
|
|
PROG="/usr/sbin/bulkdatad"
|
|
|
|
start_service() {
|
|
local enable
|
|
|
|
config_load bulkdata
|
|
config_get_bool enable bulkdata enable 1
|
|
|
|
[ "$enable" -eq "1" ] && {
|
|
procd_open_instance "bulkdata"
|
|
procd_set_param command "$PROG"
|
|
procd_set_param respawn
|
|
procd_close_instance "bulkdata"
|
|
}
|
|
}
|
|
|
|
reload_service() {
|
|
stop
|
|
start
|
|
}
|
|
|
|
service_triggers()
|
|
{
|
|
procd_add_reload_trigger bulkdata
|
|
}
|