User story #3610
closedAdd 'status' option to the rudder-server-root init script
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
Updated by Nicolas CHARLES over 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 !
Updated by Dennis Cabooter over 11 years ago
Keep in mind that there might be a better and cleaner way to do this. :)
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.3.13 to 84
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 84 to 2.4.7
Updated by Nicolas PERRON over 11 years ago
- Target version changed from 2.4.7 to 2.4.8
Updated by Nicolas PERRON about 11 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 ?
Updated by Jonathan CLARKE about 11 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.
Updated by Nicolas PERRON about 11 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.
Updated by Nicolas PERRON about 11 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.
Updated by Nicolas PERRON about 11 years ago
- Status changed from In progress to 14
Updated by Nicolas PERRON about 11 years ago
- Status changed from 10 to Pending release
Updated by Vincent MEMBRÉ about 11 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:
- The release announcement: http://www.rudder-project.org/pipermail/rudder-announce/2013-October/000056.html
- The full ChangeLog: http://www.rudder-project.org/foswiki/bin/view/System/Documentation:ChangeLog28
- Download information: http://www.rudder-project.org/foswiki/Download/
Updated by Benoît PECCATTE over 9 years ago
- Project changed from 34 to Rudder
- Category set to Packaging