iopsys-feed/wifimngr/files/wifimngr.init
Bartlomiej Grzeskowiak 0a0cad9715 wifimngr: ease wifimngr debugging
Two params are needed to enable wifimngr debugging.
1. env IOP_LLA_LIBS_DEBUG=3    #for debugging only
2. stderr 1
Second param is added and commented out by default.

Signed-off-by: Bartlomiej Grzeskowiak <bartlomiej.grzeskowiak@iopsys.eu>
2020-07-31 11:28:32 +02:00

21 lines
383 B
Bash

#!/bin/sh /etc/rc.common
START=95
STOP=10
USE_PROCD=1
PROG=/usr/sbin/wifimngr
start_service() {
procd_open_instance
procd_set_param command ${PROG}
# procd_set_param env IOP_LLA_LIBS_DEBUG=3 #for debugging only
# procd_set_param stderr 1 #for debugging only
procd_set_param respawn
procd_close_instance
}
reload_service() {
stop
start
}