Project

General

Profile

Actions

User story #3610

closed

Add 'status' option to the rudder-server-root init script

Added by Dennis Cabooter over 11 years ago. Updated over 9 years ago.

Status:
Released
Priority:
N/A
Assignee:
Nicolas PERRON
Category:
Packaging
Target version:
UX impact:
Suggestion strength:
User visibility:
Effort required:
Name check:
Fix check:
Regression:

Description

The rudder-server-root init script lacks a status option.

--- /etc/init.d/rudder-server-root.orig    2013-05-27 11:36:03.000000000 +0200
+++ /etc/init.d/rudder-server-root    2013-05-27 11:44:50.000000000 +0200
@@ -53,6 +53,16 @@
 /etc/init.d/slapd stop
 }

+status_services()
+{
+${APACHE2_INIT} status
+/etc/init.d/jetty check | tail -1
+/etc/init.d/rudder-agent status
+echo -n "postgres[`cat /var/run/postgresql/9.1-main.pid`]: " 
+/etc/init.d/postgresql* status
+/etc/init.d/slapd status
+}
+
 case "$1" in
 stop)
 stop_services
@@ -64,8 +74,11 @@
 stop_services
 start_services
 ;;
+status)
+status_services
+;;
 *)
-  echo "Usage: $0 {start|stop|restart}" 
+  echo "Usage: $0 {start|stop|restart|status}" 
   exit 1
 ;;
 esac

Subtasks 1 (0 open1 closed)

User story #3935: Add option 'status' into /etc/init.d/rudder-server-rootReleasedJonathan CLARKE2013-09-18Actions
Actions

Also available in: Atom PDF