Search
j0ke.net Open Build Service
>
Projects
>
GFS
>
cluster2
> 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 cluster2 (Revision 13)
Currently displaying revision
13
,
show latest
--- gfs/init.d/gfs.orig 2008-12-30 21:50:56.000000000 +0100 +++ gfs/init.d/gfs 2008-12-30 21:53:05.000000000 +0100 @@ -15,7 +15,20 @@ # Description: mount/unmount gfs 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 "$GFSFSTAB" ] then action $"Mounting GFS filesystems: " mount -a -t gfs + rc_status fi touch /var/lock/subsys/gfs ;; @@ -61,6 +75,7 @@ fi modprobe -r gfs + rc_status rm -f /var/lock/subsys/gfs ;; @@ -77,7 +92,9 @@ } else echo "/proc filesystem unavailable" + rc_failed fi + rc_status ;; restart) @@ -93,4 +110,4 @@ exit 1 esac -exit 0 +rc_exit