]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/mldonkey
Merge branch 'iptables-upnpfw' into core67-merge
[people/teissler/ipfire-2.x.git] / src / initscripts / init.d / mldonkey
1 #!/bin/sh
2 ########################################################################
3 # Begin $rc_base/init.d/mldonkey
4 #
5 # Description : Mldonkey Init Script
6 #
7 # Authors : Michael Tremer (ms@ipfire.org)
8 #
9 # Version : 01.00
10 #
11 # Notes :
12 #
13 ########################################################################
14
15 . /etc/sysconfig/rc
16 . ${rc_functions}
17
18 case "${1}" in
19 start)
20 boot_mesg "Starting mldonkey..."
21 chown mldonkey.mldonkey /opt/mldonkey -R &>/dev/null
22 rm -f /opt/mldonkey/.mldonkey/*.ini.tmp 2>/dev/null
23 HOME=/opt/mldonkey /opt/mldonkey/mlnet >/dev/null 2>&1 &
24 evaluate_retval
25 ;;
26
27 stop)
28 boot_mesg "Stopping mldonkey..."
29 killproc /opt/mldonkey/mlnet
30 ;;
31
32 restart)
33 ${0} stop
34 sleep 1
35 ${0} start
36 ;;
37
38 status)
39 statusproc /opt/mldonkey/mlnet
40 ;;
41
42 *)
43 echo "Usage: ${0} {start|stop|restart|status}"
44 exit 1
45 ;;
46 esac
47
48 # End $rc_base/init.d/mldonkey