[PATCH configure 2/2] added usage to aeolus-restart-services

mzatko at redhat.com mzatko at redhat.com
Wed Dec 14 11:58:58 UTC 2011


From: Maros Zatko <mzatko at redhat.com>

---
 bin/aeolus-restart-services |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/bin/aeolus-restart-services b/bin/aeolus-restart-services
index dd85fcf..6c44295 100755
--- a/bin/aeolus-restart-services
+++ b/bin/aeolus-restart-services
@@ -14,6 +14,18 @@
 #   See the License for the specific language governing permissions and
 #   limitations under the License.
 
+if ARGV.include?('-h') || ARGV.include?('--help')
+  puts "Usage: #{$0} [OPTION]
+Restart Aeolus services.
+
+  -h, --help  display this help and exit
+
+To show status of aeolus services please use aeolus-check-services.
+"
+
+  exit
+end
+
 # ordered as in rc.d
 services = %w(mongod iwhd postgresql httpd qpidd deltacloud-core libvirtd aeolus-conductor conductor-dbomatic imagefactory ntpd)
 
-- 
1.7.7.3




More information about the aeolus-devel mailing list