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
--- gfs/init.d/gfs.orig 2009-05-26 22:12:59.000000000 +0200 +++ gfs/init.d/gfs 2009-05-26 22:13:27.000000000 +0200 @@ -8,14 +8,27 @@ ### BEGIN INIT INFO # Provides: gfs # Required-Start: $network cman -# Required-Stop: $network cman -# Default-Start: +# Required-Stop: $null +# Default-Start: 2 3 5 # Default-Stop: # Short-Description: mount/unmount gfs filesystems configured in /etc/fstab # 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