File tree Expand file tree Collapse file tree 5 files changed +291
-0
lines changed
agent/distro/rhel/SYSCONFDIR/rc.d/init.d
client/distro/rhel/SYSCONFDIR
console-proxy/distro/rhel/SYSCONFDIR/rc.d/init.d
python/distro/rhel/SYSCONFDIR/rc.d/init.d Expand file tree Collapse file tree 5 files changed +291
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # chkconfig: 35 99 10
4+ # description: Cloud Agent
5+
6+ # WARNING: if this script is changed, then all other initscripts MUST BE changed to match it as well
7+
8+ . /etc/rc.d/init.d/functions
9+
10+ whatami=cloud-agent
11+
12+ # set environment variables
13+
14+ SHORTNAME=" $whatami "
15+ PIDFILE=@PIDDIR@/" $whatami " .pid
16+ LOCKFILE=@LOCKDIR@/" $SHORTNAME "
17+ LOGFILE=@AGENTLOG@
18+ PROGNAME=" Cloud Agent"
19+
20+ unset OPTIONS
21+ [ -r @SYSCONFDIR@/sysconfig/" $SHORTNAME " ] && source @SYSCONFDIR@/sysconfig/" $SHORTNAME "
22+ DAEMONIZE=@BINDIR@/@PACKAGE@-daemonize
23+ PROG=@LIBEXECDIR@/agent-runner
24+
25+ start () {
26+ echo -n $" Starting $PROGNAME : "
27+ if hostname --fqdn > /dev/null 2>&1 ; then
28+ daemon --check=$SHORTNAME --pidfile=${PIDFILE} " $DAEMONIZE " \
29+ -n " $SHORTNAME " -p " $PIDFILE " -l " $LOGFILE " " $PROG " $OPTIONS
30+ RETVAL=$?
31+ echo
32+ else
33+ failure
34+ echo
35+ echo The host name does not resolve properly to an IP address. Cannot start " $PROGNAME " . > /dev/stderr
36+ RETVAL=9
37+ fi
38+ [ $RETVAL = 0 ] && touch ${LOCKFILE}
39+ return $RETVAL
40+ }
41+
42+ stop () {
43+ echo -n $" Stopping $PROGNAME : "
44+ killproc -p ${PIDFILE} $SHORTNAME # -d 10 $SHORTNAME
45+ RETVAL=$?
46+ echo
47+ [ $RETVAL = 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
48+ }
49+
50+
51+ # See how we were called.
52+ case " $1 " in
53+ start)
54+ start
55+ ;;
56+ stop)
57+ stop
58+ ;;
59+ status)
60+ status -p ${PIDFILE} $SHORTNAME
61+ RETVAL=$?
62+ ;;
63+ restart)
64+ stop
65+ sleep 3
66+ start
67+ ;;
68+ condrestart)
69+ if status -p ${PIDFILE} $SHORTNAME >& /dev/null; then
70+ stop
71+ sleep 3
72+ start
73+ fi
74+ ;;
75+ * )
76+ echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
77+ RETVAL=3
78+ esac
79+
80+ exit $RETVAL
81+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ #
3+ # @PACKAGE@-management This shell script takes care of starting and stopping Tomcat
4+ #
5+ # chkconfig: - 80 20
6+ #
7+ # ## BEGIN INIT INFO
8+ # Provides: tomcat6
9+ # Required-Start: $network $syslog
10+ # Required-Stop: $network $syslog
11+ # Default-Start:
12+ # Default-Stop:
13+ # Description: Release implementation for Servlet 2.5 and JSP 2.1
14+ # Short-Description: start and stop tomcat
15+ # ## END INIT INFO
16+ #
17+ # - originally written by Henri Gomez, Keith Irwin, and Nicolas Mailhot
18+ # - heavily rewritten by Deepak Bhole and Jason Corley
19+ #
20+
21+ if [ -r /etc/rc.d/init.d/functions ]; then
22+ . /etc/rc.d/init.d/functions
23+ fi
24+ if [ -r /lib/lsb/init-functions ]; then
25+ . /lib/lsb/init-functions
26+ fi
27+
28+
29+ NAME=" $( basename $0 ) "
30+
31+ # See how we were called.
32+ case " $1 " in
33+ status)
34+ status ${NAME}
35+ RETVAL=$?
36+ ;;
37+ * )
38+ . /etc/rc.d/init.d/tomcat6
39+ esac
40+
41+ exit $RETVAL
Original file line number Diff line number Diff line change 1+ # This file is loaded in /etc/init.d/vmopsmanagement
2+ # ATM we only do two things here:
3+
4+ dummy=1 ; export TOMCAT_CFG=@MSCONF@/tomcat6.conf ; . @MSCONF@/tomcat6.conf
5+ #--------------------------
6+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # chkconfig: 35 99 10
4+ # description: Cloud Console Proxy
5+
6+ # WARNING: if this script is changed, then all other initscripts MUST BE changed to match it as well
7+
8+ . /etc/rc.d/init.d/functions
9+
10+ whatami=cloud-console-proxy
11+
12+ # set environment variables
13+
14+ SHORTNAME=" $whatami "
15+ PIDFILE=@PIDDIR@/" $whatami " .pid
16+ LOCKFILE=@LOCKDIR@/" $SHORTNAME "
17+ LOGFILE=@CPLOG@
18+ PROGNAME=" Cloud Console Proxy"
19+
20+ unset OPTIONS
21+ [ -r @SYSCONFDIR@/sysconfig/" $SHORTNAME " ] && source @SYSCONFDIR@/sysconfig/" $SHORTNAME "
22+ DAEMONIZE=@BINDIR@/@PACKAGE@-daemonize
23+ PROG=@LIBEXECDIR@/console-proxy-runner
24+
25+ start () {
26+ echo -n $" Starting $PROGNAME : "
27+ if hostname --fqdn > /dev/null 2>&1 ; then
28+ daemon --check=$SHORTNAME --pidfile=${PIDFILE} " $DAEMONIZE " \
29+ -n " $SHORTNAME " -p " $PIDFILE " -l " $LOGFILE " " $PROG " $OPTIONS
30+ RETVAL=$?
31+ echo
32+ else
33+ failure
34+ echo
35+ echo The host name does not resolve properly to an IP address. Cannot start " $PROGNAME " . > /dev/stderr
36+ RETVAL=9
37+ fi
38+ [ $RETVAL = 0 ] && touch ${LOCKFILE}
39+ return $RETVAL
40+ }
41+
42+ stop () {
43+ echo -n $" Stopping $PROGNAME : "
44+ killproc -p ${PIDFILE} $SHORTNAME # -d 10 $SHORTNAME
45+ RETVAL=$?
46+ echo
47+ [ $RETVAL = 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
48+ }
49+
50+
51+ # See how we were called.
52+ case " $1 " in
53+ start)
54+ start
55+ ;;
56+ stop)
57+ stop
58+ ;;
59+ status)
60+ status -p ${PIDFILE} $SHORTNAME
61+ RETVAL=$?
62+ ;;
63+ restart)
64+ stop
65+ sleep 3
66+ start
67+ ;;
68+ condrestart)
69+ if status -p ${PIDFILE} $SHORTNAME >& /dev/null; then
70+ stop
71+ sleep 3
72+ start
73+ fi
74+ ;;
75+ * )
76+ echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
77+ RETVAL=3
78+ esac
79+
80+ exit $RETVAL
81+
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+
3+ # chkconfig: 35 99 10
4+ # description: Cloud Agent
5+
6+ # WARNING: if this script is changed, then all other initscripts MUST BE changed to match it as well
7+
8+ . /etc/rc.d/init.d/functions
9+
10+ whatami=cloud-external-ipallocator
11+
12+ # set environment variables
13+
14+ SHORTNAME=" $whatami "
15+ PIDFILE=@PIDDIR@/" $whatami " .pid
16+ LOCKFILE=@LOCKDIR@/" $SHORTNAME "
17+ LOGFILE=@AGENTLOG@
18+ PROGNAME=" Cloud Agent"
19+
20+ unset OPTIONS
21+ [ -r @SYSCONFDIR@/sysconfig/" $SHORTNAME " ] && source @SYSCONFDIR@/sysconfig/" $SHORTNAME "
22+ DAEMONIZE=@BINDIR@/@PACKAGE@-daemonize
23+ PROG=@BINDIR@/@PACKAGE@-external-ipallocator.py
24+ OPTIONS=8083
25+
26+ start () {
27+ echo -n $" Starting $PROGNAME : "
28+ if hostname --fqdn > /dev/null 2>&1 ; then
29+ daemon --check=$SHORTNAME --pidfile=${PIDFILE} " $DAEMONIZE " \
30+ -n " $SHORTNAME " -p " $PIDFILE " -l " $LOGFILE " " $PROG " $OPTIONS
31+ RETVAL=$?
32+ echo
33+ else
34+ failure
35+ echo
36+ echo The host name does not resolve properly to an IP address. Cannot start " $PROGNAME " . > /dev/stderr
37+ RETVAL=9
38+ fi
39+ [ $RETVAL = 0 ] && touch ${LOCKFILE}
40+ return $RETVAL
41+ }
42+
43+ stop () {
44+ echo -n $" Stopping $PROGNAME : "
45+ killproc -p ${PIDFILE} $SHORTNAME # -d 10 $SHORTNAME
46+ RETVAL=$?
47+ echo
48+ [ $RETVAL = 0 ] && rm -f ${LOCKFILE} ${PIDFILE}
49+ }
50+
51+
52+ # See how we were called.
53+ case " $1 " in
54+ start)
55+ start
56+ ;;
57+ stop)
58+ stop
59+ ;;
60+ status)
61+ status -p ${PIDFILE} $SHORTNAME
62+ RETVAL=$?
63+ ;;
64+ restart)
65+ stop
66+ sleep 3
67+ start
68+ ;;
69+ condrestart)
70+ if status -p ${PIDFILE} $SHORTNAME >& /dev/null; then
71+ stop
72+ sleep 3
73+ start
74+ fi
75+ ;;
76+ * )
77+ echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
78+ RETVAL=3
79+ esac
80+
81+ exit $RETVAL
82+
You can’t perform that action at this time.
0 commit comments