Skip to content

Commit a6763d0

Browse files
committedDec 15, 2011
rework system init scripts (and whatever OSX uses) for starman.
1 parent 34519fc commit a6763d0

File tree

3 files changed

+28
-28
lines changed

3 files changed

+28
-28
lines changed
 

‎wre/sbin/services/freebsd/webgui

+11-11
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,23 @@ name="webgui"
88
rcvar=`set_rcvar`
99

1010
extra_commands="help startweb stopweb restartweb\
11-
startmodperl stopmodperl restartmodperl\
11+
startstarman stopstarman restartstarman\
1212
startnginx stopnginx restartnginx\
1313
startmysql stopmysql restartmysql\
1414
startspectre stopspectre restartspectre\
1515
"
1616
help_cmd="${name}_help"
1717
start_cmd="${name}_start"
1818
stop_cmd="${name}_stop"
19-
startweb_cmd="${startmodperl_cmd}; ${startnginx_cmd}"
20-
stopweb_cmd="${stopnginx_cmd}; ${stopmodperl_cmd}"
19+
startweb_cmd="${startstarman_cmd}; ${startnginx_cmd}"
20+
stopweb_cmd="${stopnginx_cmd}; ${stopstarman_cmd}"
2121
restartweb_cmd="${stopweb_cmd}; ${startweb_cmd}"
2222
startnginx_cmd="${name}_startnginx"
2323
stopnginx_cmd="${name}_stopnginx"
2424
restartnginx_cmd="${stopnginx_cmd}; ${startnginx_cmd}"
25-
startmodperl_cmd="${name}_startmodperl"
26-
stopmodperl_cmd="${name}_stopmodperl"
27-
restartmodperl_cmd="${stopmodperl_cmd}; ${startmodperl_cmd}"
25+
startstarman_cmd="${name}_startstarman"
26+
stopstarman_cmd="${name}_stopstarman"
27+
restartstarman_cmd="${stopstarman_cmd}; ${startstarman_cmd}"
2828
startmysql_cmd="${name}_startmysql"
2929
stopmysql_cmd="${name}_stopmysql"
3030
restartmysql_cmd="${stopmysql_cmd}; ${startmysql_cmd}"
@@ -41,7 +41,7 @@ webgui_help() {
4141
echo " -- Start/stop all WRE services"
4242
echo " $0 { startweb | stopweb | restartweb }"
4343
echo " -- Start/stop both Apache services"
44-
echo " $0 { startmodperl | stopmodperl | restartmodperl }"
44+
echo " $0 { startstarman | stopstarman | restartstarman }"
4545
echo " -- Start/stop mod_perl (WebGUI) Apache service"
4646
echo " $0 { startnginx | stopnginx | restartnginx }"
4747
echo " -- Start/stop mod_proxy Apache service"
@@ -60,12 +60,12 @@ webgui_stop() {
6060
wreservice.pl --quiet --stop all
6161
}
6262

63-
webgui_startmodperl() {
64-
wreservice.pl --quiet --start modperl
63+
webgui_startstarman() {
64+
wreservice.pl --quiet --start starman
6565
}
6666

67-
webgui_stopmodperl() {
68-
wreservice.pl --quiet --stop modperl
67+
webgui_stopstarman() {
68+
wreservice.pl --quiet --stop starman
6969
}
7070

7171
webgui_startnginx() {

‎wre/sbin/services/redhat/webgui

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ case "$1" in
3434
restartweb)
3535
/data/wre/sbin/wreservice.pl --quiet --restart web
3636
;;
37-
startmodperl)
38-
/data/wre/sbin/wreservice.pl --quiet --start modperl
37+
startstarman)
38+
/data/wre/sbin/wreservice.pl --quiet --start starman
3939
;;
40-
stopmodperl)
41-
/data/wre/sbin/wreservice.pl --quiet --stop modperl
40+
stopstarman)
41+
/data/wre/sbin/wreservice.pl --quiet --stop starman
4242
;;
43-
restartmodperl)
44-
/data/wre/sbin/wreservice.pl --quiet --restart modperl
43+
restartstarman)
44+
/data/wre/sbin/wreservice.pl --quiet --restart starman
4545
;;
4646
startnginx)
4747
/data/wre/sbin/wreservice.pl --quiet --start nginx
@@ -66,7 +66,7 @@ case "$1" in
6666
echo $"Usage:"
6767
echo $" $0 { start | stop | restart }"
6868
echo $" $0 { startweb | stopweb | restartweb }"
69-
echo $" $0 { startmodperl | stopmodperl | restartmodperl }"
69+
echo $" $0 { startstarman | stopstarman | restartstarman }"
7070
echo $" $0 { startnginx | stopnginx | restartnginx }"
7171
echo $" $0 { startmysql | stopmysql | restartmysql }"
7272
echo $" $0 { startspectre | stopspectre | restartspectre }"

‎wre/sbin/services/redhat/wre-apache

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22
# chkconfig: 2345 90 60
3-
# description: Start and stop WebGUI (WRE) Apache
4-
# processname: wreapache
3+
# description: Start and stop WebGUI (WRE) Web services (starman and nginx)
4+
# processname: wreweb
55

66
. /data/wre/sbin/setenvironment.sh
77

@@ -16,14 +16,14 @@ case "$1" in
1616
restart)
1717
/data/wre/sbin/wreservice.pl --quiet --restart web
1818
;;
19-
startmodperl)
20-
/data/wre/sbin/wreservice.pl --quiet --start modperl
19+
startstarman)
20+
/data/wre/sbin/wreservice.pl --quiet --start starman
2121
;;
22-
stopmodperl)
23-
/data/wre/sbin/wreservice.pl --quiet --stop modperl
22+
stopstarman)
23+
/data/wre/sbin/wreservice.pl --quiet --stop starman
2424
;;
25-
restartmodperl)
26-
/data/wre/sbin/wreservice.pl --quiet --restart modperl
25+
restartstarman)
26+
/data/wre/sbin/wreservice.pl --quiet --restart starman
2727
;;
2828
startnginx)
2929
/data/wre/sbin/wreservice.pl --quiet --start nginx
@@ -35,10 +35,10 @@ case "$1" in
3535
/data/wre/sbin/wreservice.pl --quiet --restart nginx
3636
;;
3737
*)
38-
echo $"WRE Apache Service Controller"
38+
echo $"WRE Web Service Controller"
3939
echo $"Usage:"
4040
echo $" $0 { start | stop | restart }"
41-
echo $" $0 { startmodperl | stopmodperl | restartmodperl }"
41+
echo $" $0 { startstarman | stopstarman | restartstarman }"
4242
echo $" $0 { startnginx | stopnginx | restartnginx }"
4343
echo $" $0 { startweb | stopweb | restartweb }"
4444
exit 1

0 commit comments

Comments
 (0)
Please sign in to comment.