Search
j0ke.net Open Build Service
>
Projects
>
GFS
:
experimental
>
cluster3
> cluster-cman-init.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cluster-cman-init.patch of Package cluster3 (Revision 17)
Currently displaying revision
17
,
show latest
--- cman/init.d/cman.in.orig 2009-10-21 12:55:15.000000000 +0200 +++ cman/init.d/cman.in 2009-11-10 20:36:37.000000000 +0100 @@ -10,28 +10,41 @@ # Provides: cman # Required-Start: $network $time # Required-Stop: $network $time -# Default-Start: -# Default-Stop: +# Default-Start: 2 3 5 # Short-Description: Starts and stops cman # Description: Starts and stops the Cluster Manager set of daemons ### 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 + # set secure PATH PATH="/bin:/usr/bin:/sbin:/usr/sbin:@SBINDIR@" local_chkconfig() { - ls /etc/rc${2}.d/S*${3} > /dev/null 2>/dev/null + ls /etc/init.d/rc${2}.d/S*${3} > /dev/null 2>/dev/null } success() { - echo -ne "[ OK ]\r" + rc_status -v } failure() { - echo -ne "[FAILED]\r" + rc_failed } status() @@ -933,4 +946,4 @@ ;; esac -exit $rtrn +rc_exit