Project

General

Profile

Actions

User story #3610

closed

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

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

Updated by Nicolas CHARLES almost 11 years ago

  • Category set to 13
  • Target version set to 2.3.13

Dennis,

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

Actions #2

Updated by Dennis Cabooter almost 11 years ago

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

Actions #3

Updated by Nicolas PERRON almost 11 years ago

  • Target version changed from 2.3.13 to 84
Actions #4

Updated by Nicolas PERRON almost 11 years ago

  • Target version changed from 84 to 2.4.7
Actions #5

Updated by Nicolas PERRON over 10 years ago

  • Target version changed from 2.4.7 to 2.4.8
Actions #6

Updated by Nicolas PERRON over 10 years ago

  • 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 ?

Actions #7

Updated by Jonathan CLARKE over 10 years ago

  • 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.

Actions #8

Updated by Nicolas PERRON over 10 years ago

  • 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.

Actions #9

Updated by Nicolas PERRON over 10 years ago

  • 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.

Actions #10

Updated by Nicolas PERRON over 10 years ago

  • Status changed from In progress to 14
Actions #11

Updated by Nicolas PERRON over 10 years ago

  • Status changed from 14 to 10
Actions #12

Updated by Nicolas PERRON over 10 years ago

  • Status changed from 10 to Pending release
Actions #13

Updated by Vincent MEMBRÉ over 10 years ago

  • Status changed from Pending release to Released

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

Actions #14

Updated by Benoît PECCATTE about 9 years ago

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

Also available in: Atom PDF