microwave 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. data/Rakefile +4 -4
  2. data/bin/chef-solo +2 -0
  3. data/spec/spec_helper.rb +2 -0
  4. data/spec/unit/checksum/storage/filesystem_spec.rb +4 -4
  5. data/spec/unit/config_spec.rb +7 -4
  6. data/spec/unit/data_bag_spec.rb +11 -11
  7. data/spec/unit/formatters/error_inspectors/compile_error_inspector_spec.rb +8 -8
  8. data/spec/unit/formatters/error_inspectors/resource_failure_inspector_spec.rb +5 -5
  9. metadata +10 -124
  10. data/distro/README +0 -2
  11. data/distro/arch/etc/conf.d/chef-client.conf +0 -5
  12. data/distro/arch/etc/conf.d/chef-expander.conf +0 -8
  13. data/distro/arch/etc/conf.d/chef-server-webui.conf +0 -10
  14. data/distro/arch/etc/conf.d/chef-server.conf +0 -10
  15. data/distro/arch/etc/conf.d/chef-solr.conf +0 -8
  16. data/distro/arch/etc/rc.d/chef-client +0 -90
  17. data/distro/arch/etc/rc.d/chef-expander +0 -78
  18. data/distro/arch/etc/rc.d/chef-server +0 -78
  19. data/distro/arch/etc/rc.d/chef-server-webui +0 -78
  20. data/distro/arch/etc/rc.d/chef-solr +0 -78
  21. data/distro/common/html/chef-client.8.html +0 -145
  22. data/distro/common/html/chef-expander.8.html +0 -164
  23. data/distro/common/html/chef-expanderctl.8.html +0 -146
  24. data/distro/common/html/chef-server-webui.8.html +0 -185
  25. data/distro/common/html/chef-server.8.html +0 -182
  26. data/distro/common/html/chef-solo.8.html +0 -191
  27. data/distro/common/html/chef-solr.8.html +0 -165
  28. data/distro/common/html/knife-bootstrap.1.html +0 -241
  29. data/distro/common/html/knife-client.1.html +0 -219
  30. data/distro/common/html/knife-configure.1.html +0 -170
  31. data/distro/common/html/knife-cookbook-site.1.html +0 -241
  32. data/distro/common/html/knife-cookbook.1.html +0 -384
  33. data/distro/common/html/knife-data-bag.1.html +0 -238
  34. data/distro/common/html/knife-environment.1.html +0 -267
  35. data/distro/common/html/knife-exec.1.html +0 -134
  36. data/distro/common/html/knife-index.1.html +0 -125
  37. data/distro/common/html/knife-node.1.html +0 -250
  38. data/distro/common/html/knife-recipe.1.html +0 -92
  39. data/distro/common/html/knife-role.1.html +0 -200
  40. data/distro/common/html/knife-search.1.html +0 -288
  41. data/distro/common/html/knife-ssh.1.html +0 -156
  42. data/distro/common/html/knife-status.1.html +0 -128
  43. data/distro/common/html/knife-tag.1.html +0 -137
  44. data/distro/common/html/knife.1.html +0 -320
  45. data/distro/common/html/shef.1.html +0 -283
  46. data/distro/common/man/man1/knife-bootstrap.1 +0 -201
  47. data/distro/common/man/man1/knife-client.1 +0 -99
  48. data/distro/common/man/man1/knife-configure.1 +0 -88
  49. data/distro/common/man/man1/knife-cookbook-site.1 +0 -145
  50. data/distro/common/man/man1/knife-cookbook.1 +0 -345
  51. data/distro/common/man/man1/knife-data-bag.1 +0 -136
  52. data/distro/common/man/man1/knife-environment.1 +0 -178
  53. data/distro/common/man/man1/knife-exec.1 +0 -46
  54. data/distro/common/man/man1/knife-index.1 +0 -29
  55. data/distro/common/man/man1/knife-node.1 +0 -134
  56. data/distro/common/man/man1/knife-role.1 +0 -88
  57. data/distro/common/man/man1/knife-search.1 +0 -280
  58. data/distro/common/man/man1/knife-ssh.1 +0 -79
  59. data/distro/common/man/man1/knife-status.1 +0 -29
  60. data/distro/common/man/man1/knife-tag.1 +0 -43
  61. data/distro/common/man/man1/knife.1 +0 -288
  62. data/distro/common/man/man1/shef.1 +0 -256
  63. data/distro/common/man/man8/chef-client.8 +0 -104
  64. data/distro/common/man/man8/chef-expander.8 +0 -97
  65. data/distro/common/man/man8/chef-expanderctl.8 +0 -62
  66. data/distro/common/man/man8/chef-server-webui.8 +0 -155
  67. data/distro/common/man/man8/chef-server.8 +0 -147
  68. data/distro/common/man/man8/chef-solo.8 +0 -158
  69. data/distro/common/man/man8/chef-solr.8 +0 -122
  70. data/distro/common/markdown/README +0 -3
  71. data/distro/common/markdown/man1/knife-bootstrap.mkd +0 -141
  72. data/distro/common/markdown/man1/knife-client.mkd +0 -103
  73. data/distro/common/markdown/man1/knife-configure.mkd +0 -70
  74. data/distro/common/markdown/man1/knife-cookbook-site.mkd +0 -123
  75. data/distro/common/markdown/man1/knife-cookbook.mkd +0 -263
  76. data/distro/common/markdown/man1/knife-data-bag.mkd +0 -121
  77. data/distro/common/markdown/man1/knife-environment.mkd +0 -151
  78. data/distro/common/markdown/man1/knife-exec.mkd +0 -37
  79. data/distro/common/markdown/man1/knife-index.mkd +0 -30
  80. data/distro/common/markdown/man1/knife-node.mkd +0 -130
  81. data/distro/common/markdown/man1/knife-role.mkd +0 -85
  82. data/distro/common/markdown/man1/knife-search.mkd +0 -180
  83. data/distro/common/markdown/man1/knife-ssh.mkd +0 -69
  84. data/distro/common/markdown/man1/knife-status.mkd +0 -36
  85. data/distro/common/markdown/man1/knife-tag.mkd +0 -39
  86. data/distro/common/markdown/man1/knife.mkd +0 -218
  87. data/distro/common/markdown/man1/shef.mkd +0 -189
  88. data/distro/common/markdown/man8/chef-client.mkd +0 -74
  89. data/distro/common/markdown/man8/chef-expander.mkd +0 -82
  90. data/distro/common/markdown/man8/chef-expanderctl.mkd +0 -58
  91. data/distro/common/markdown/man8/chef-server-webui.mkd +0 -121
  92. data/distro/common/markdown/man8/chef-server.mkd +0 -121
  93. data/distro/common/markdown/man8/chef-solo.mkd +0 -107
  94. data/distro/common/markdown/man8/chef-solr.mkd +0 -89
  95. data/distro/debian/etc/default/chef-client +0 -4
  96. data/distro/debian/etc/default/chef-expander +0 -8
  97. data/distro/debian/etc/default/chef-server +0 -9
  98. data/distro/debian/etc/default/chef-server-webui +0 -9
  99. data/distro/debian/etc/default/chef-solr +0 -8
  100. data/distro/debian/etc/init.d/chef-client +0 -210
  101. data/distro/debian/etc/init.d/chef-expander +0 -176
  102. data/distro/debian/etc/init.d/chef-server +0 -122
  103. data/distro/debian/etc/init.d/chef-server-webui +0 -123
  104. data/distro/debian/etc/init.d/chef-solr +0 -176
  105. data/distro/debian/etc/init/chef-client.conf +0 -17
  106. data/distro/debian/etc/init/chef-expander.conf +0 -17
  107. data/distro/debian/etc/init/chef-server-webui.conf +0 -17
  108. data/distro/debian/etc/init/chef-server.conf +0 -17
  109. data/distro/debian/etc/init/chef-solr.conf +0 -17
  110. data/distro/redhat/etc/init.d/chef-client +0 -121
  111. data/distro/redhat/etc/init.d/chef-expander +0 -104
  112. data/distro/redhat/etc/init.d/chef-server +0 -112
  113. data/distro/redhat/etc/init.d/chef-server-webui +0 -112
  114. data/distro/redhat/etc/init.d/chef-solr +0 -104
  115. data/distro/redhat/etc/logrotate.d/chef-client +0 -8
  116. data/distro/redhat/etc/logrotate.d/chef-expander +0 -8
  117. data/distro/redhat/etc/logrotate.d/chef-server +0 -8
  118. data/distro/redhat/etc/logrotate.d/chef-server-webui +0 -8
  119. data/distro/redhat/etc/logrotate.d/chef-solr +0 -8
  120. data/distro/redhat/etc/sysconfig/chef-client +0 -15
  121. data/distro/redhat/etc/sysconfig/chef-expander +0 -7
  122. data/distro/redhat/etc/sysconfig/chef-server +0 -14
  123. data/distro/redhat/etc/sysconfig/chef-server-webui +0 -14
  124. data/distro/redhat/etc/sysconfig/chef-solr +0 -8
  125. data/distro/windows/service_manager.rb +0 -164
@@ -1,17 +0,0 @@
1
- # chef-client - Chef Configuration Management Client
2
- #
3
- # Chef Client provides the Chef configuration management daemon
4
-
5
- description "Chef Client"
6
-
7
- start on filesystem
8
- stop on runlevel [!2345]
9
-
10
- respawn
11
- respawn limit 5 30
12
-
13
- pre-start script
14
- test -x /usr/bin/chef-client || { stop; exit 0; }
15
- end script
16
-
17
- exec /usr/bin/chef-client -i 1800 -L /var/log/chef/client.log
@@ -1,17 +0,0 @@
1
- # chef-expander - Chef Expander
2
- #
3
- # Chef Expander provides indexing of Solr for Chef Server
4
-
5
- description "Chef Expander"
6
-
7
- start on filesystem
8
- stop on runlevel [!2345]
9
-
10
- respawn
11
- respawn limit 5 30
12
-
13
- pre-start script
14
- test -x /usr/bin/chef-expander || { stop; exit 0; }
15
- end script
16
-
17
- exec /usr/bin/chef-expander -c /etc/chef/solr.rb -L /var/log/chef/expander.log -n 1 -i 1
@@ -1,17 +0,0 @@
1
- # chef-server-webui - Chef Server WebUI
2
- #
3
- # Chef Server WebUI provides the browser-accessible UI to the Chef Server API
4
-
5
- description "Chef Server WebUI"
6
-
7
- start on filesystem
8
- stop on runlevel [!2345]
9
-
10
- respawn
11
- respawn limit 5 30
12
-
13
- pre-start script
14
- test -x /usr/bin/chef-server-webui || { stop; exit 0; }
15
- end script
16
-
17
- exec /usr/bin/chef-server-webui -e production -p 4040 -L /var/log/chef/server-webui.log
@@ -1,17 +0,0 @@
1
- # chef-server - Chef Server
2
- #
3
- # Chef Server provides the Chef API server
4
-
5
- description "Chef Server API"
6
-
7
- start on filesystem
8
- stop on runlevel [!2345]
9
-
10
- respawn
11
- respawn limit 5 30
12
-
13
- pre-start script
14
- test -x /usr/bin/chef-server || { stop; exit 0; }
15
- end script
16
-
17
- exec /usr/bin/chef-server -e production -p 4000 -L /var/log/chef/server.log
@@ -1,17 +0,0 @@
1
- # chef-solr - Chef Solr
2
- #
3
- # Chef Solr provides Solr search for Chef Server
4
-
5
- description "Chef Solr"
6
-
7
- start on filesystem
8
- stop on runlevel [!2345]
9
-
10
- respawn
11
- respawn limit 5 30
12
-
13
- pre-start script
14
- test -x /usr/bin/chef-solr || { stop; exit 0; }
15
- end script
16
-
17
- exec /usr/bin/chef-solr -c /etc/chef/solr.rb -L /var/log/chef/solr.log
@@ -1,121 +0,0 @@
1
- #!/bin/bash
2
- #
3
- # chef-client Startup script for the Chef client
4
- #
5
- # chkconfig: - 98 02
6
- # description: Client component of the Chef systems integration framework.
7
-
8
- ### BEGIN INIT INFO
9
- # Provides: chef-client
10
- # Required-Start: $local_fs $network $remote_fs
11
- # Required-Stop: $local_fs $network $remote_fs
12
- # Should-Start: $named $time
13
- # Should-Stop: $named $time
14
- # Short-Description: Startup script for the Chef client
15
- # Description: Client component of the Chef systems integration framework.
16
- ### END INIT INFO
17
-
18
- # Source function library
19
- . /etc/init.d/functions
20
-
21
- exec="/usr/bin/chef-client"
22
- prog="chef-client"
23
-
24
- [ -e /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
25
-
26
- config=${CONFIG-/etc/chef/client.rb}
27
- pidfile=${PIDFILE-/var/run/chef/client.pid}
28
- lockfile=${LOCKFILE-/var/lock/subsys/$prog}
29
- logfile=${LOGFILE-/var/log/chef/client.log}
30
- interval=${INTERVAL-1800}
31
- splay=${SPLAY-20}
32
- options=${OPTIONS-}
33
-
34
- start() {
35
- [ -x $exec ] || exit 5
36
- [ -f $config ] || exit 6
37
- echo -n $"Starting $prog: "
38
- daemon chef-client -d -c "$config" -L "$logfile" -P "$pidfile" -i "$interval" -s "$splay" "$options"
39
- retval=$?
40
- echo
41
- [ $retval -eq 0 ] && touch $lockfile
42
- return $retval
43
- }
44
-
45
- stop() {
46
- echo -n $"Stopping $prog: "
47
- killproc -p $pidfile chef-client
48
- retval=$?
49
- echo
50
- [ $retval -eq 0 ] && rm -f $lockfile
51
- return $retval
52
- }
53
-
54
- restart () {
55
- stop
56
- start
57
- }
58
-
59
- reload() {
60
- echo -n $"Reloading $prog: "
61
- killproc -p $pidfile chef-client -HUP
62
- retval=$?
63
- echo
64
- return $retval
65
- }
66
-
67
- run() {
68
- echo -n $"Triggering run of $prog: "
69
- killproc -p $pidfile chef-client -USR1
70
- retval=$?
71
- echo
72
- return $retval
73
- }
74
-
75
- force_reload() {
76
- restart
77
- }
78
-
79
- rh_status() {
80
- # run checks to determine if the service is running or use generic status
81
- status -p $pidfile $prog
82
- }
83
-
84
- rh_status_q() {
85
- rh_status >/dev/null 2>&1
86
- }
87
-
88
- case "$1" in
89
- start)
90
- rh_status_q && exit 0
91
- $1
92
- ;;
93
- stop)
94
- rh_status_q || exit 0
95
- $1
96
- ;;
97
- restart)
98
- $1
99
- ;;
100
- reload)
101
- rh_status_q || exit 7
102
- $1
103
- ;;
104
- force-reload)
105
- force_reload
106
- ;;
107
- status)
108
- rh_status
109
- ;;
110
- condrestart|try-restart)
111
- rh_status_q || exit 0
112
- restart
113
- ;;
114
- run)
115
- $1
116
- ;;
117
- *)
118
- echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload|run}"
119
- exit 2
120
- esac
121
- exit $?
@@ -1,104 +0,0 @@
1
- #!/bin/bash
2
- #
3
- # chef-expander Startup script for the Chef search indexer
4
- #
5
- # chkconfig: - 95 05
6
- # description: Search indexer component of the Chef Server.
7
-
8
- ### BEGIN INIT INFO
9
- # Provides: chef-expander
10
- # Required-Start: $local_fs $network $remote_fs chef-solr rabbitmq-server
11
- # Required-Stop: $local_fs $network $remote_fs chef-solr rabbitmq-server
12
- # Should-Start: $named $time
13
- # Should-Stop: $named $time
14
- # Short-Description: Startup script for the Chef search indexer
15
- # Description: Search indexer component of the Chef Server.
16
- ### END INIT INFO
17
-
18
- # Source function library
19
- . /etc/init.d/functions
20
-
21
- exec="/usr/bin/chef-expander"
22
- prog="chef-expander"
23
-
24
- [ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
25
-
26
- config=${CONFIG-/etc/chef/expander.rb}
27
- pidfile=${PIDFILE-/var/run/chef/expander.pid}
28
- lockfile=${LOCKFILE-/var/lock/subsys/$prog}
29
- logfile=${LOGFILE-/var/log/chef/expander.log}
30
- options=${OPTIONS-}
31
-
32
- start() {
33
- [ -x $exec ] || exit 5
34
- [ -f $config ] || exit 6
35
- echo -n $"Starting $prog: "
36
- daemon $prog -d -c "$config" -L "$logfile" -P "$pidfile" "$options"
37
- retval=$?
38
- echo
39
- [ $retval -eq 0 ] && touch $lockfile
40
- return $retval
41
- }
42
-
43
- stop() {
44
- echo -n $"Stopping $prog: "
45
- killproc -p $pidfile $prog
46
- retval=$?
47
- echo
48
- [ $retval -eq 0 ] && rm -f $lockfile
49
- return $retval
50
- }
51
-
52
- restart () {
53
- stop
54
- start
55
- }
56
-
57
- reload() {
58
- restart
59
- }
60
-
61
- force_reload() {
62
- restart
63
- }
64
-
65
- rh_status() {
66
- # run checks to determine if the service is running or use generic status
67
- status -p $pidfile $prog
68
- }
69
-
70
- rh_status_q() {
71
- rh_status >/dev/null 2>&1
72
- }
73
-
74
- case "$1" in
75
- start)
76
- rh_status_q && exit 0
77
- $1
78
- ;;
79
- stop)
80
- rh_status_q || exit 0
81
- $1
82
- ;;
83
- restart)
84
- $1
85
- ;;
86
- reload)
87
- rh_status_q || exit 7
88
- $1
89
- ;;
90
- force-reload)
91
- force_reload
92
- ;;
93
- status)
94
- rh_status
95
- ;;
96
- condrestart|try-restart)
97
- rh_status_q || exit 0
98
- restart
99
- ;;
100
- *)
101
- echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
102
- exit 2
103
- esac
104
- exit $?
@@ -1,112 +0,0 @@
1
- #!/bin/bash
2
- #
3
- # chef-server Startup script for chef-server
4
- #
5
- # chkconfig: - 96 04
6
- # description: Server component of the Chef systems integration framework.
7
-
8
- ### BEGIN INIT INFO
9
- # Provides: chef-server
10
- # Required-Start: $local_fs $network $remote_fs chef-solr chef-expander
11
- # Required-Stop: $local_fs $network $remote_fs chef-solr chef-expander
12
- # Should-Start: $named $time
13
- # Should-Stop: $named $time
14
- # Short-Description: Startup script for chef-server
15
- # Description: Server component of the Chef systems integration framework.
16
- ### END INIT INFO
17
-
18
- # Source function library
19
- . /etc/init.d/functions
20
-
21
- exec="/usr/bin/chef-server"
22
- prog="chef-server"
23
-
24
- [ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
25
-
26
- config=${CONFIG-/etc/chef/server.rb}
27
- pidfile=${PIDFILE-/var/run/chef/server.main.pid}
28
- lockfile=${LOCKFILE-/var/lock/subsys/$prog}
29
- logfile=${LOGFILE-/var/log/chef/server.log}
30
- port=${PORT-4000}
31
- env=${ENVIRONMENT-production}
32
- adapter=${ADAPTER-thin}
33
- childpidfiles=${CHILDPIDFILES-/var/run/chef/server.%s.pid}
34
- user=${SERVER_USER-chef}
35
- group=${SERVER_GROUP-chef}
36
- options=${OPTIONS-}
37
-
38
- start() {
39
- [ -x $exec ] || exit 5
40
- [ -f $config ] || exit 6
41
- echo -n $"Starting $prog: "
42
- daemon $prog -d -C "$config" -L "$logfile" -p "$port" -e "$env" \
43
- -a "$adapter" -P "$childpidfiles" -u "$user" -G "$group" \
44
- "$options" "&>/dev/null"
45
- retval=$?
46
- echo
47
- [ $retval -eq 0 ] && touch $lockfile
48
- return $retval
49
- }
50
-
51
- stop() {
52
- echo -n $"Stopping $prog: "
53
- killproc -p $pidfile $prog
54
- retval=$?
55
- echo
56
- [ $retval -eq 0 ] && rm -f $lockfile
57
- return $retval
58
- }
59
-
60
- restart () {
61
- stop
62
- start
63
- }
64
-
65
- reload() {
66
- restart
67
- }
68
-
69
- force_reload() {
70
- restart
71
- }
72
-
73
- rh_status() {
74
- # run checks to determine if the service is running or use generic status
75
- status -p $pidfile $prog
76
- }
77
-
78
- rh_status_q() {
79
- rh_status >/dev/null 2>&1
80
- }
81
-
82
- case "$1" in
83
- start)
84
- rh_status_q && exit 0
85
- $1
86
- ;;
87
- stop)
88
- rh_status_q || exit 0
89
- $1
90
- ;;
91
- restart)
92
- $1
93
- ;;
94
- reload)
95
- rh_status_q || exit 7
96
- $1
97
- ;;
98
- force-reload)
99
- force_reload
100
- ;;
101
- status)
102
- rh_status
103
- ;;
104
- condrestart|try-restart)
105
- rh_status_q || exit 0
106
- restart
107
- ;;
108
- *)
109
- echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
110
- exit 2
111
- esac
112
- exit $?
@@ -1,112 +0,0 @@
1
- #!/bin/bash
2
- #
3
- # chef-server-webui Startup script for chef-server-webui
4
- #
5
- # chkconfig: - 97 03
6
- # description: Server WebUI component of the Chef systems integration framework.
7
-
8
- ### BEGIN INIT INFO
9
- # Provides: chef-server-webui
10
- # Required-Start: $local_fs $network $remote_fs chef-sever
11
- # Required-Stop: $local_fs $network $remote_fs chef-server
12
- # Should-Start: $named $time
13
- # Should-Stop: $named $time
14
- # Short-Description: Startup script for chef-server-webui
15
- # Description: Server WebUI component of the Chef systems integration framework.
16
- ### END INIT INFO
17
-
18
- # Source function library
19
- . /etc/init.d/functions
20
-
21
- exec="/usr/bin/chef-server-webui"
22
- prog="chef-server-webui"
23
-
24
- [ -f /etc/sysconfig/$prog ] && . /etc/sysconfig/$prog
25
-
26
- config=${CONFIG-/etc/chef/webui.rb}
27
- pidfile=${PIDFILE-/var/run/chef/server-webui.main.pid}
28
- lockfile=${LOCKFILE-/var/lock/subsys/$prog}
29
- logfile=${LOGFILE-/var/log/chef/server-webui.log}
30
- port=${PORT-4040}
31
- env=${ENVIRONMENT-production}
32
- adapter=${ADAPTER-thin}
33
- childpidfiles=${CHILDPIDFILES-/var/run/chef/server-webui.%s.pid}
34
- user=${SERVER_USER-chef}
35
- group=${SERVER_GROUP-chef}
36
- options=${OPTIONS-}
37
-
38
- start() {
39
- [ -x $exec ] || exit 5
40
- [ -f $config ] || exit 6
41
- echo -n $"Starting $prog: "
42
- daemon $prog -d -C "$config" -L "$logfile" -p "$port" -e "$env" \
43
- -a "$adapter" -P "$childpidfiles" -u "$user" -G "$group" \
44
- "$options" "&>/dev/null"
45
- retval=$?
46
- echo
47
- [ $retval -eq 0 ] && touch $lockfile
48
- return $retval
49
- }
50
-
51
- stop() {
52
- echo -n $"Stopping $prog: "
53
- killproc -p $pidfile $prog
54
- retval=$?
55
- echo
56
- [ $retval -eq 0 ] && rm -f $lockfile
57
- return $retval
58
- }
59
-
60
- restart () {
61
- stop
62
- start
63
- }
64
-
65
- reload() {
66
- restart
67
- }
68
-
69
- force_reload() {
70
- restart
71
- }
72
-
73
- rh_status() {
74
- # run checks to determine if the service is running or use generic status
75
- status -p $pidfile $prog
76
- }
77
-
78
- rh_status_q() {
79
- rh_status >/dev/null 2>&1
80
- }
81
-
82
- case "$1" in
83
- start)
84
- rh_status_q && exit 0
85
- $1
86
- ;;
87
- stop)
88
- rh_status_q || exit 0
89
- $1
90
- ;;
91
- restart)
92
- $1
93
- ;;
94
- reload)
95
- rh_status_q || exit 7
96
- $1
97
- ;;
98
- force-reload)
99
- force_reload
100
- ;;
101
- status)
102
- rh_status
103
- ;;
104
- condrestart|try-restart)
105
- rh_status_q || exit 0
106
- restart
107
- ;;
108
- *)
109
- echo $"Usage: $0 {start|stop|status|restart|condrestart|try-restart|reload|force-reload}"
110
- exit 2
111
- esac
112
- exit $?