File tree Expand file tree Collapse file tree
centos/SYSCONFDIR/rc.d/init.d
fedora/SYSCONFDIR/rc.d/init.d
opensuse/sles/SYSCONFDIR/init.d
rhel/SYSCONFDIR/rc.d/init.d
centos/SYSCONFDIR/rc.d/init.d
fedora/SYSCONFDIR/rc.d/init.d
opensuse/SYSCONFDIR/init.d
rhel/SYSCONFDIR/rc.d/init.d
centos/SYSCONFDIR/rc.d/init.d
fedora/SYSCONFDIR/rc.d/init.d
rhel/SYSCONFDIR/rc.d/init.d Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424
2525. /etc/rc.d/init.d/functions
2626
27- whatami=cloud-agent
28-
2927# set environment variables
3028
31- SHORTNAME=" $whatami "
32- PIDFILE=@PIDDIR@/" $whatami " .pid
29+ SHORTNAME=" $0 "
30+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
3331LOCKFILE=@LOCKDIR@/" $SHORTNAME "
3432LOGFILE=@AGENTLOG@
3533PROGNAME=" Cloud Agent"
@@ -114,7 +112,7 @@ case "$1" in
114112 fi
115113 ;;
116114 * )
117- echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
115+ echo $" Usage: $SHORTNAME {start|stop|restart|condrestart|status|help}"
118116 RETVAL=3
119117esac
120118
Original file line number Diff line number Diff line change 2424
2525. /etc/rc.d/init.d/functions
2626
27- whatami=cloud-agent
28-
2927# set environment variables
3028
31- SHORTNAME=" $whatami "
32- PIDFILE=@PIDDIR@/" $whatami " .pid
29+ SHORTNAME=" $0 "
30+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
3331LOCKFILE=@LOCKDIR@/" $SHORTNAME "
3432LOGFILE=@AGENTLOG@
3533PROGNAME=" Cloud Agent"
@@ -114,7 +112,7 @@ case "$1" in
114112 fi
115113 ;;
116114 * )
117- echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
115+ echo $" Usage: $SHORTNAME {start|stop|restart|condrestart|status|help}"
118116 RETVAL=3
119117esac
120118
Original file line number Diff line number Diff line change 3131. /lib/lsb/init-functions
3232. /etc/rc.status
3333
34- whatami=cloud-agent
35-
3634# set environment variables
3735
38- SHORTNAME=" $whatami "
39- PIDFILE=@PIDDIR@/" $whatami " .pid
36+ SHORTNAME=" $0 "
37+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
4038LOCKFILE=@LOCKDIR@/" $SHORTNAME "
4139LOGFILE=@AGENTLOG@
4240PROGNAME=" Cloud Agent"
@@ -166,7 +164,7 @@ case "$1" in
166164 start
167165 ;;
168166 * )
169- echo $" Usage: $whatami {start|stop|restart|status|help}"
167+ echo $" Usage: $SHORTNAME {start|stop|restart|status|help}"
170168 RETVAL=3
171169esac
172170
Original file line number Diff line number Diff line change 2424
2525. /etc/rc.d/init.d/functions
2626
27- whatami=cloud-agent
28-
2927# set environment variables
3028
31- SHORTNAME=" $whatami "
32- PIDFILE=@PIDDIR@/" $whatami " .pid
29+ SHORTNAME=" $0 "
30+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
3331LOCKFILE=@LOCKDIR@/" $SHORTNAME "
3432LOGFILE=@AGENTLOG@
3533PROGNAME=" Cloud Agent"
@@ -114,7 +112,7 @@ case "$1" in
114112 fi
115113 ;;
116114 * )
117- echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
115+ echo $" Usage: $SHORTNAME {start|stop|restart|condrestart|status|help}"
118116 RETVAL=3
119117esac
120118
Original file line number Diff line number Diff line change 3131. /lib/lsb/init-functions
3232. /etc/rc.status
3333
34- whatami=cloud-agent
35-
3634# set environment variables
3735
38- SHORTNAME=" $whatami "
39- PIDFILE=@PIDDIR@/" $whatami " .pid
36+ SHORTNAME=" $0 "
37+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
4038LOCKFILE=@LOCKDIR@/" $SHORTNAME "
4139LOGFILE=@AGENTLOG@
4240PROGNAME=" Cloud Agent"
@@ -166,7 +164,7 @@ case "$1" in
166164 start
167165 ;;
168166 * )
169- echo $" Usage: $whatami {start|stop|restart|status|help}"
167+ echo $" Usage: $SHORTNAME {start|stop|restart|status|help}"
170168 RETVAL=3
171169esac
172170
Original file line number Diff line number Diff line change 2424
2525. /etc/rc.d/init.d/functions
2626
27- whatami=cloudstack-agent
28-
2927# set environment variables
3028
31- SHORTNAME=" $whatami "
32- PIDFILE=/var/run/" $whatami " .pid
29+ SHORTNAME=" $0 "
30+ PIDFILE=/var/run/" $SHORTNAME " .pid
3331LOCKFILE=/var/lock/subsys/" $SHORTNAME "
3432LOGDIR=/var/log/cloudstack/agent
3533LOGFILE=${LOGDIR} /agent.log
@@ -112,7 +110,7 @@ case "$1" in
112110 fi
113111 ;;
114112 * )
115- echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
113+ echo $" Usage: $SHORTNAME {start|stop|restart|condrestart|status|help}"
116114 RETVAL=3
117115esac
118116
Original file line number Diff line number Diff line change 2323
2424. /etc/rc.d/init.d/functions
2525
26- whatami=cloud-external-ipallocator
27-
2826# set environment variables
2927
30- SHORTNAME=" $whatami "
31- PIDFILE=/var/run/" $whatami " .pid
28+ SHORTNAME=" $0 "
29+ PIDFILE=/var/run/" $SHORTNAME " .pid
3230LOCKFILE=/var/lock/subsys/" $SHORTNAME "
3331LOGFILE=/var/log/cloudstack/ipallocator/ipallocator.log
3432PROGNAME=" External IPAllocator"
@@ -90,7 +88,7 @@ case "$1" in
9088 fi
9189 ;;
9290 * )
93- echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
91+ echo $" Usage: $SHORTNAME {start|stop|restart|condrestart|status|help}"
9492 RETVAL=3
9593esac
9694
Original file line number Diff line number Diff line change 2323
2424. /etc/rc.d/init.d/functions
2525
26- whatami=cloud-external-ipallocator
27-
2826# set environment variables
2927
30- SHORTNAME=" $whatami "
31- PIDFILE=@PIDDIR@/" $whatami " .pid
28+ SHORTNAME=" $0 "
29+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
3230LOCKFILE=@LOCKDIR@/" $SHORTNAME "
3331LOGFILE=@IPALOCATORLOG@
3432PROGNAME=" External IPAllocator"
@@ -90,7 +88,7 @@ case "$1" in
9088 fi
9189 ;;
9290 * )
93- echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
91+ echo $" Usage: $SHORTNAME {start|stop|restart|condrestart|status|help}"
9492 RETVAL=3
9593esac
9694
Original file line number Diff line number Diff line change 2323
2424. /etc/rc.d/init.d/functions
2525
26- whatami=cloud-external-ipallocator
27-
2826# set environment variables
2927
30- SHORTNAME=" $whatami "
31- PIDFILE=@PIDDIR@/" $whatami " .pid
28+ SHORTNAME=" $0 "
29+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
3230LOCKFILE=@LOCKDIR@/" $SHORTNAME "
3331LOGFILE=@AGENTLOG@
3432PROGNAME=" Cloud Agent"
@@ -90,7 +88,7 @@ case "$1" in
9088 fi
9189 ;;
9290 * )
93- echo $" Usage: $whatami {start|stop|restart|condrestart|status|help}"
91+ echo $" Usage: $SHORTNAME {start|stop|restart|condrestart|status|help}"
9492 RETVAL=3
9593esac
9694
Original file line number Diff line number Diff line change 3030. /lib/lsb/init-functions
3131. /etc/rc.status
3232
33- whatami=cloud-external-ipallocator
34-
3533# set environment variables
3634
37- SHORTNAME=" $whatami "
38- PIDFILE=@PIDDIR@/" $whatami " .pid
35+ SHORTNAME=" $0 "
36+ PIDFILE=@PIDDIR@/" $SHORTNAME " .pid
3937LOCKFILE=@LOCKDIR@/" $SHORTNAME "
4038LOGFILE=@AGENTLOG@
4139PROGNAME=" Cloud Agent"
@@ -110,7 +108,7 @@ case "$1" in
110108 start
111109 ;;
112110 * )
113- echo $" Usage: $whatami {start|stop|restart|status|help}"
111+ echo $" Usage: $SHORTNAME {start|stop|restart|status|help}"
114112 RETVAL=3
115113esac
116114
You can’t perform that action at this time.
0 commit comments