File: ud.initscript

package info (click to toggle)
ud 0.7.1-1
  • links: PTS
  • area: main
  • in suites: slink
  • size: 296 kB
  • ctags: 113
  • sloc: ansic: 696; sh: 492; makefile: 67
file content (39 lines) | stat: -rwxr-xr-x 484 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
35
36
37
38
39
#!/bin/sh
#
# Startup script for the Uptime daemon
#
# chkconfig: 2345 40 60
# description: Uptime daemon tracks your best 3 uptimes.
#
#


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

# See how we were called.
case "$1" in
  start)
	echo -n "Starting ud: "
	daemon ud
	echo
	;;
  stop)
	echo -n "Shutting down ud: "
	killproc ud
	echo
	;;
  status)
	status ud
	;;
  restart)
	$0 stop
	$0 start
	;;
  *)
	echo "Usage: ud {start|stop|restart|status}"
	exit 1
esac

exit 0