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 17)
Currently displaying revision
17
,
show latest
--- gfs/init.d/gfs.in.orig 2009-11-08 21:33:56.000000000 +0100 +++ gfs/init.d/gfs.in 2009-11-10 20:37:55.000000000 +0100 @@ -9,23 +9,37 @@ # Provides: gfs # Required-Start: $network cman # Required-Stop: $network cman -# Default-Start: -# Default-Stop: +# 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 -v } failure() { - echo -ne "[FAILED]\r" + rc_failed } # rpm based distros @@ -145,4 +159,4 @@ exit 1 esac -exit 0 +rc_exit