Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
cluster2
> cluster-gfs2-init.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File cluster-gfs2-init.patch of Package cluster2 (Revision 13)
Currently displaying revision
13
,
show latest
--- gfs2/init.d/gfs2.orig 2008-12-30 21:53:45.000000000 +0100 +++ gfs2/init.d/gfs2 2008-12-30 21:55:17.000000000 +0100 @@ -15,7 +15,20 @@ # Description: mount/unmount gfs2 filesystems configured in /etc/fstab ### END INIT INFO -. /etc/init.d/functions +. /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 + [ -f /etc/sysconfig/cluster ] && . /etc/sysconfig/cluster # @@ -30,6 +43,7 @@ if [ -n "$GFS2FSTAB" ] then action $"Mounting GFS2 filesystems: " mount -a -t gfs2 + rc_status fi touch /var/lock/subsys/gfs2 ;; @@ -59,7 +73,7 @@ sig=-9 done fi - + rc_status rm -f /var/lock/subsys/gfs2 ;; @@ -76,7 +90,9 @@ } else echo "/proc filesystem unavailable" + rc_failed fi + rc_status ;; restart) @@ -92,4 +108,4 @@ exit 1 esac -exit 0 +rc_exit