6 [ -f /etc
/conf.d
/atftpd
] && .
/etc
/conf.d
/atftpd
8 PIDFILE
=/var
/run
/atftpd.pid
9 PID
=$
(cat $PIDFILE 2>/dev
/null
)
10 if ! readlink
-q /proc
/$PID/exe |
grep -q '^/usr/sbin/atftpd'; then
12 rm $PIDFILE 2>/dev
/null
17 stat_busy
"Starting Advanced TFTP Daemon"
18 [ -z "$PID" ] && /usr
/sbin
/atftpd
--daemon --pidfile ${PIDFILE} ${ATFTPD_ARGS}
27 stat_busy
"Stopping Advanced TFTP Daemon"
28 [ ! -z "$PID" ] && kill $PID &> /dev
/null
42 echo "usage: $0 {start|stop|restart}"