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.
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
- Category set to 13
- Target version set to 2.3.13
Dennis,
Thank you for this patch ! We'll include it into Rudder !
Keep in mind that there might be a better and cleaner way to do this. :)
- Target version changed from 2.3.13 to 84
- Target version changed from 84 to 2.4.7
- Target version changed from 2.4.7 to 2.4.8
- 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 ?
- 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.
- 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.
- 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.
- Status changed from In progress to 14
- Status changed from 14 to 10
- Status changed from 10 to Pending release
- Status changed from Pending release to Released
This bug has been fixed in Rudder 2.8.0~beta1, which was released today.
Check out:
- Project changed from 34 to Rudder
- Category set to Packaging
Also available in: Atom
PDF