blob: 12f0c8f5f2a3fd71fd3069534e9ebaecee5c6eed [file] [log] [blame]
#!/bin/sh /etc/rc.common
# Init script for Prince
# Copyright (C) 2018 OpenWrt.org
USE_PROCD=1
START=99
STOP=15
PROG="/usr/bin/prince"
CONF="/etc/prince.conf"
start_service(){
procd_open_instance
procd_set_param command $PROG $CONF
procd_set_param stdout 1
procd_set_param stderr 1
procd_set_param user nobody
procd_close_instance
echo "Prince started"
}