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 19)
Currently displaying revision
19
,
show latest
--- gfs2/init.d/gfs2.orig 2008-12-30 21:53:45.000000000 +0100 +++ gfs2/init.d/gfs2 2009-03-30 10:05:59.000000000 +0200 @@ -9,13 +9,26 @@ # Provides: gfs2 # Required-Start: $network cman # Required-Stop: $network cman -# Default-Start: +# Default-Start: 2 3 5 # Default-Stop: # Short-Description: mount/unmount gfs2 filesystems configured in /etc/fstab # 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