ControlSystem-SSDP/Server/ssdp_responder.rc

18 lines
399 B
Plaintext

#!/sbin/openrc-run
name="ssdp-responder"
command="python3"
command_args="/bin/control_system/Home_Control_Flask/SSDP_Response.py"
command_background=true
pidfile="/run/${RC_SVCNAME}.pid"
extra_started_commands="reload"
error_log="/var/log/ssdp-responder.err"
depend(){
need net
}
reload() {
ebegin "Reloading ${RC_SVCNAME}"
start-stop-daemon --signal HUP --pidfile "${pidfile}"
eend $?
}