blob: 6a6a5b48e163aef00e939628b0683629c8206273 (
plain)
1 #!/bin/sh
2 #
3 # /etc/rc.d/mlnetd: start/stop mldonkey daemon
4 #
5
6 LOG_FILE=/var/log/mlnetd
7
8 case $1 in
9 start)
10 export MLDONKEY_DIR=/var/mlnet
11 su mldonkey -c \
12 "mlnet -run_as_user mldonkey 2>&1 >/dev/null" 2>&1 >$LOG_FILE &
13 ;;
14 stop)
15 pkill mlnet
16 ;;
17 restart)
18 $0 stop
19 sleep 1
20 $0 start
21 ;;
22 *)
23 echo "Usage: $0 [start|stop|restart]"
24 ;;
25 esac
26
27 # End of file
|