Project

General

Profile

User story #3610

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

Added by Dennis Cabooter almost 7 years ago. Updated almost 5 years ago.

Status:
Released
Priority:
N/A
Assignee:
Nicolas PERRON
Category:
Packaging
Target version:
Pull Request:
Suggestion strength:
User visibility:
Effort required:

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

User story #3935: Add option 'status' into /etc/init.d/rudder-server-rootReleased2013-09-18Jonathan CLARKEActions
#1

Updated by Nicolas CHARLES almost 7 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 !

#2

Updated by Dennis Cabooter almost 7 years ago

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

#3

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.3.13 to 84
#4

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 84 to 2.4.7
#5

Updated by Nicolas PERRON over 6 years ago

  • Target version changed from 2.4.7 to 2.4.8
#6

Updated by Nicolas PERRON over 6 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 ?

#7

Updated by Jonathan CLARKE over 6 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.

#8

Updated by Nicolas PERRON over 6 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.

#9

Updated by Nicolas PERRON over 6 years ago

  • Tracker changed from Bug to User story
  • Project changed from Rudder to packages
  • 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.

#10

Updated by Nicolas PERRON over 6 years ago

  • Status changed from In progress to 14
#11

Updated by Nicolas PERRON over 6 years ago

  • Status changed from 14 to 10
#12

Updated by Nicolas PERRON over 6 years ago

  • Status changed from 10 to Pending release
#13

Updated by Vincent MEMBRÉ over 6 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:

#14

Updated by Benoît PECCATTE almost 5 years ago

  • Project changed from packages to Rudder
  • Category set to Packaging

Also available in: Atom PDF