File: bnetd.init

package info (click to toggle)
bnetd 0.4.25-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 4,516 kB
  • ctags: 7,224
  • sloc: ansic: 67,547; sh: 3,142; makefile: 796; python: 304; perl: 211; awk: 73
file content (51 lines) | stat: -rwxr-xr-x 816 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# -*- sh -*-
#
# bnetd         Script to control the Unix Battle.net Daemon
#
# Author:       Hakan Tandogan <hakan@gurkensalat.com>
#
# chkconfig: 2345 21 79
# description: bnetd is a Unix clone of the Battle.net Daemon
#

# Source function library.
. /etc/rc.d/init.d/functions

# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting bnetd: "
        daemon bnetd
        echo
        touch /var/lock/subsys/bnetd
        ;;

  stop)
        # Stop daemons.
        echo -n "Shutting down bnetd: "
	killproc bnetd
        echo
        rm -f /var/lock/subsys/bnetd
        ;;

  reload)
	$0 stop
	$0 start
	;;

  restart)
	$0 stop
	$0 start
	;;

  status)
	status bnetd
	;;

  *)
        echo "Usage: bnetd {start|stop|restart|reload|status}"
        exit 1
esac

exit 0