- Fix subsytem locking in init script

This commit is contained in:
Peter Jones 2006-09-13 15:32:33 +00:00
parent 53bf04eacf
commit a98aa583db
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,29 @@
--- mcstrans-0.1.8/src/mcstrans.init.subsys-locking 2006-09-13 11:21:11.000000000 -0400
+++ mcstrans-0.1.8/src/mcstrans.init 2006-09-13 11:29:18.000000000 -0400
@@ -48,7 +48,7 @@
RETVAL=$?
echo
if test $RETVAL = 0 ; then
- touch /var/lock/subsys/$prog
+ touch /var/lock/subsys/mcstrans
fi
return $RETVAL
}
@@ -58,7 +58,7 @@
killproc $prog
RETVAL=$?
echo
- rm -f /var/lock/subsys/$prog
+ rm -f /var/lock/subsys/mcstrans
return $RETVAL
}
@@ -76,7 +76,7 @@
}
condrestart(){
- [ -e /var/lock/subsys/$prog ] && restart
+ [ -e /var/lock/subsys/mcstrans ] && restart
return 0
}

View File

@ -13,6 +13,7 @@ Requires(post):/sbin/chkconfig /sbin/service
Provides: setransd
Provides: libsetrans
Obsoletes: libsetrans
Patch0: mcstrans-0.1.8-subsys-locking.patch
%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
@ -30,6 +31,7 @@ from internal representations to user defined representation.
%prep
%setup -q
%patch0 -p1 -b .subsys-locking
%build
make clean
@ -67,6 +69,9 @@ fi
%{_sysconfdir}/rc.d/init.d/mcstrans
%changelog
* Wed Sep 13 2006 Peter Jones <pjones@redhat.com> - 0.1.8-2
- Fix subsys locking in init script
* Wed Aug 23 2006 Dan Walsh <dwalsh@redhat.com> 0.1.8-1
- Only allow one version to run