1 #!/bin/sh /etc/rc.common
2 # Copyright (C) 2017 OpenWrt.org
11 DEFAULT
=/etc
/default
/$DAEMON
12 LOGGER
="/usr/bin/logger -p user.err -s -t $DAEMON"
14 PROG
=/usr
/sbin
/$DAEMON
16 [ -f $DEFAULT ] && .
$DEFAULT
21 if [ "$ENABLE_RESTUND" != yes ]; then
22 $LOGGER User configuration incomplete
- not starting
$DAEMON
23 $LOGGER Check ENABLE_RESTUND
in $DEFAULT
28 procd_set_param
command $PROG
29 procd_append_param
command \
32 procd_set_param pidfile
/var
/run
/${DAEMON}.pid
33 # forward stderr to logd
34 procd_set_param stderr
1
35 # forward stdout to logd
36 procd_set_param stdout
1
37 procd_set_param user
$DAEMON