File: whereami.init

package info (click to toggle)
whereami 0.3.36
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 424 kB
  • sloc: sh: 1,094; perl: 524; makefile: 24
file content (34 lines) | stat: -rwxr-xr-x 491 bytes parent folder | download | duplicates (6)
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
#!/bin/sh
#
# Start or stop 'whereami'
#
# Andrew McMillan <Andrew@cat-it.co.nz>
#
# Only the 'start' case is actually interesting at this point

test -x /usr/sbin/whereami || exit 0

case "$1" in
    start)
	echo -n "Where Am I: "
	start-stop-daemon --start --quiet --exec /usr/sbin/whereami
	echo "."	
    ;;

    stop)
    ;;

    restart)
    ;;
    
    force-reload)
    ;;


    *)
	echo "Usage: /etc/init.d/whereami {start|stop|restart|force-reload}" >&2
	exit 1
    ;;
esac

exit 0