mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
libjwt new version paho-mqtt-c package package for the example file paho: include all shared lib and header files, remove redundant lines jwt: include all shared lib files, use correct jansson dependency mqtt-ciotc: remove copy paste excess update package dependencies update repo, hash and path correct git path add init.d script update hash hash update update hash update init.d and add config script
35 lines
659 B
Bash
Executable file
35 lines
659 B
Bash
Executable file
#!/bin/sh /etc/rc.common
|
|
|
|
START=96
|
|
STOP=10
|
|
PROG=/sbin/mqtt-ciotc
|
|
|
|
USE_PROCD=1
|
|
|
|
start_service() {
|
|
procd_open_instance
|
|
procd_set_param command ${PROG}
|
|
config_load mqtt-ciotc
|
|
config_get private-cert mqtt-ciotc private-cert
|
|
config_get root-cert mqtt-ciotc root-cert
|
|
|
|
[ -n $private-cert ] && procd_append_param command --private-cert $private-cert
|
|
[ -n $root-cert ] && procd_append_param command --root-cert $root-cert
|
|
procd_set_param respawn
|
|
procd_close_instance
|
|
}
|
|
|
|
stop_service()
|
|
{
|
|
service_stop ${PROG}
|
|
}
|
|
|
|
reload_service() {
|
|
# procd_send_signal wifilife # use SIGHUP
|
|
stop
|
|
start
|
|
}
|
|
|
|
service_triggers() {
|
|
procd_add_reload_trigger "mqtt-ciotc"
|
|
}
|