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
--- gfs2/init.d/gfs2.orig 2009-05-26 22:14:05.000000000 +0200 +++ gfs2/init.d/gfs2 2009-05-26 22:14:30.000000000 +0200 @@ -8,14 +8,27 @@ ### BEGIN INIT INFO # Provides: gfs2 # Required-Start: $network cman -# Required-Stop: $network cman -# Default-Start: +# Required-Stop: $null +# 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