]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - src/initscripts/init.d/mldonkey
dnsmasq: Make command line customizeable.
[people/pmueller/ipfire-2.x.git] / src / initscripts / init.d / mldonkey
CommitLineData
c7e54648
MT
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
18case "${1}" in
19 start)
20 boot_mesg "Starting mldonkey..."
cb101bcf 21 chown mldonkey.mldonkey /opt/mldonkey -R &>/dev/null
2c4909ab 22 rm -f /opt/mldonkey/.mldonkey/*.ini.tmp 2>/dev/null
c7e54648
MT
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 ;;
46esac
47
48# End $rc_base/init.d/mldonkey