added wolf's code
[swamp-bikeopera:code.git] / lib / swamp-machine.init
1 #! /bin/sh
2
3 #
4 # Function that starts the daemon/service
5 #
6 do_start()
7 {
8         cd  /home/startx/projects/swamp-machine/trunk/src/
9         /home/startx/projects/swamp-machine/trunk/src/swamp >/dev/null &
10 }
11
12 #
13 # Function that stops the daemon/service
14 #
15 do_stop()
16 {
17         killall swamp
18         killall swamp_gpsd
19         killall swamp_playd
20 }
21
22 case "$1" in
23   start)
24
25         do_start
26         ;;
27   stop)
28         do_stop
29         ;;
30 esac
31
32 :