8 PIDFILE
=/var
/run
/utserver
/utserver.pid
10 [ -r "$PIDFILE" ] && PID
=$
(cat "$PIDFILE")
11 [ -n "$PID" ] && PID
=$
(pidof
-s /usr
/share
/utserver
/utserver
)
15 stat_busy
"Starting uTorrent-server"
16 su
-l -s /bin
/sh
-c "/usr/bin/utserver $UTSERVER_ARGS >/dev/null 2>&1" $UTSERVER_USER
25 stat_busy
"Stopping uTorrent-server"
26 [ -n "$PID" ] && kill $PID &> /dev
/null
30 while [ -d /proc
/"$PID" ]; do
43 echo "usage: $0 {start|stop|restart}"