7 .
/etc
/conf.d
/$daemon_name
17 stat_busy
"Starting $daemon_name daemon"
20 if [ -z "$PID" ]; then
21 [ -f /var
/run
/$daemon_name.pid
] && rm -f /var
/run
/$daemon_name.pid
24 lsmod |
grep tun
2>&1 > /dev
/null
25 if [ $?
!= "0" ]; then
29 /usr
/sbin
/$daemon_name $PTRTD_ARGS 2>&1 > /dev
/null
35 echo `get_pid` > /var
/run
/$daemon_name.pid
36 add_daemon
$daemon_name
46 stat_busy
"Stopping $daemon_name daemon"
49 [ ! -z "$PID" ] && kill $PID &> /dev
/null
55 rm -f /var
/run
/$daemon_name.pid
&> /dev
/null
56 rm_daemon
$daemon_name
67 echo "usage: $0 {start|stop|restart}"