Search
j0ke.net Open Build Service
>
Projects
>
GFS
:
experimental
>
cluster3
> cluster-gfs-init.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cluster-gfs-init.patch of Package cluster3 (Revision 2)
Currently displaying revision
2
,
show latest
--- gfs/init.d/gfs.in.orig 2009-11-08 21:33:56.000000000 +0100 +++ gfs/init.d/gfs.in 2009-11-08 21:34:53.000000000 +0100 @@ -8,24 +8,38 @@ ### BEGIN INIT INFO # Provides: gfs # Required-Start: $network cman -# Required-Stop: $network cman -# Default-Start: -# Default-Stop: +# Required-Stop: $null +# Default-Start: 2 3 5 # Short-Description: mount/unmount gfs filesystems configured in /etc/fstab # Description: mount/unmount gfs filesystems configured in /etc/fstab ### 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@" success() { - echo -ne "[ OK ]\r" + rc_status } failure() { - echo -ne "[FAILED]\r" + rc_failed } # rpm based distros