/[packages]/cauldron/ajaxterm/current/SOURCES/ajaxterm.init
ViewVC logotype

Contents of /cauldron/ajaxterm/current/SOURCES/ajaxterm.init

Parent Directory Parent Directory | Revision Log Revision Log


Revision 197811 - (show annotations) (download)
Wed Jan 18 11:39:17 2012 UTC (12 years, 2 months ago) by nelg
File size: 1144 byte(s)
imported package ajaxterm
1 #!/bin/sh
2 #
3 # Startup script for some_daemon
4 #
5 # chkconfig: 345 86 16
6 # description: A web based terminal accessible by a web browser.
7 #
8 # processname: ajaxterm.py
9
10 ### BEGIN INIT INFO
11 # Provides: ajaxterm
12 # Required-Start: $network
13 # Default-Start: 5
14 # Short-Description: A web based terminal accessible by a web browser.
15 # Description: A web based terminal accessible by a web browser.
16 ### END INIT INFO
17
18 # Source function library.
19 . /etc/rc.d/init.d/functions
20
21 DAEMON_NAME=ajaxterm
22
23 PORT=8022
24
25 [ -f /etc/sysconfig/$DAEMON_NAME ] && . /etc/sysconfig/$DAEMON_NAME
26
27 case "$1" in
28 start)
29 gprintf "Starting %s: " $DAEMON_NAME
30 daemon $DAEMON_NAME --daemon $OPTIONS --port $PORT
31 echo
32 touch /var/lock/subsys/$DAEMON_NAME
33 ;;
34 stop)
35 gprintf "Shutting down %s: " $DAEMON_NAME
36 killproc $DAEMON_NAME
37 echo
38 rm -f /var/lock/subsys/$DAEMON_NAME
39 ;;
40 status)
41 status $DAEMON_NAME
42 ;;
43 reload|restart)
44 $0 stop
45 $0 start
46 ;;
47 *)
48 gprintf "Usage: %s\n" "$0 {start|stop|restart|reload|status}"
49 exit 1
50 esac
51
52 exit 0

  ViewVC Help
Powered by ViewVC 1.1.30