Project

General

Profile

Actions

User story #3610

closed

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

User story #3610: Add 'status' option to the rudder-server-root init script

Added by Dennis Cabooter almost 13 years ago. Updated about 11 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 CLARKEActions

Updated by Nicolas CHARLES almost 13 years ago Actions #1

  • Category set to 13
  • Target version set to 2.3.13

Dennis,

Thank you for this patch ! We'll include it into Rudder !

Updated by Dennis Cabooter almost 13 years ago Actions #2

Keep in mind that there might be a better and cleaner way to do this. :)

Updated by Nicolas PERRON almost 13 years ago Actions #3

  • Target version changed from 2.3.13 to 84

Updated by Nicolas PERRON almost 13 years ago Actions #4

  • Target version changed from 84 to 2.4.7

Updated by Nicolas PERRON over 12 years ago Actions #5

  • Target version changed from 2.4.7 to 2.4.8

Updated by Nicolas PERRON over 12 years ago Actions #6

  • Status changed from New to Discussion
  • Assignee set to Jonathan CLARKE

Hmmm... not sure this can be considered as a "bug". I'd like to have it into 2.4 but it seems to me that a change like this should not be added. What do you think about it Jon ?

Updated by Jonathan CLARKE over 12 years ago Actions #7

  • Assignee changed from Jonathan CLARKE to Nicolas PERRON
  • Target version changed from 2.4.8 to 2.8.0~beta1

Nicolas PERRON wrote:

Hmmm... not sure this can be considered as a "bug". I'd like to have it into 2.4 but it seems to me that a change like this should not be added. What do you think about it Jon ?

Well, it's a difficult case, because this would just be adding a function in the shell script that is not normally called... But, yes, in the spirit of keeping stable versions as stable as possible, we shouldn't take that risk.

Let's add it in 2.8.

Updated by Nicolas PERRON over 12 years ago Actions #8

  • Status changed from Discussion to In progress

Jonathan CLARKE wrote:

Nicolas PERRON wrote:

Hmmm... not sure this can be considered as a "bug". I'd like to have it into 2.4 but it seems to me that a change like this should not be added. What do you think about it Jon ?

Well, it's a difficult case, because this would just be adding a function in the shell script that is not normally called... But, yes, in the spirit of keeping stable versions as stable as possible, we shouldn't take that risk.

Let's add it in 2.8.

Ok.

I'll had it.

Updated by Nicolas PERRON over 12 years ago Actions #9

  • Tracker changed from Bug to User story
  • Project changed from Rudder to 34
  • Subject changed from The rudder-server-root init script lacks status option to Add 'status' option to the rudder-server-root init script
  • Category deleted (13)

I will consider this as a feature.

Updated by Nicolas PERRON over 12 years ago Actions #10

  • Status changed from In progress to 14

Updated by Nicolas PERRON over 12 years ago Actions #11

  • Status changed from 14 to 10

Updated by Nicolas PERRON over 12 years ago Actions #12

  • Status changed from 10 to Pending release

Updated by Vincent MEMBRÉ over 12 years ago Actions #13

  • Status changed from Pending release to Released

This bug has been fixed in Rudder 2.8.0~beta1, which was released today.
Check out:

Updated by Benoît PECCATTE about 11 years ago Actions #14

  • Project changed from 34 to Rudder
  • Category set to Packaging
Actions

Also available in: PDF Atom