Search
j0ke.net Open Build Service
>
Projects
>
GFS
:
experimental
>
cluster3
> cluster-rgmanager-init.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cluster-rgmanager-init.patch of Package cluster3 (Revision 2)
Currently displaying revision
2
,
show latest
--- rgmanager/init.d/rgmanager.in.orig 2009-10-21 12:55:15.000000000 +0200 +++ rgmanager/init.d/rgmanager.in 2009-11-08 21:39:13.000000000 +0100 @@ -6,14 +6,27 @@ # ### BEGIN INIT INFO # Provides: rgmanager -# Required-Start: cman +# Required-Start: $network cman # Required-Stop: cman -# Default-Start: -# Default-Stop: +# Default-Start: 2 3 4 # Short-Description: Starts and stops Red Hat Service (resource group) Manager # Description: Starts and stops Red Hat Service (resource group) Manager ### END INIT INFO +. /etc/rc.status + +# Shell functions sourced from /etc/rc.status: +# rc_check check and set local and overall rc status +# rc_status check and set local and overall rc status +# rc_status -v ditto but be verbose in local rc status +# rc_status -v -r ditto and clear the local rc status +# rc_failed set local and overall rc status to failed +# rc_reset clear local rc status (overall remains) +# rc_exit exit appropriate to overall rc status + +# First reset status of this service +rc_reset + ID="Cluster Service Manager" RGMGRD="rgmanager" @@ -22,12 +35,12 @@ success() { - echo -ne "[ OK ]\r" + rc_status } failure() { - echo -ne "[FAILED]\r" + rc_failed } status()