Page 1 of 1

Patch priority level for start/end script in/etc/rc.d/init.d

Posted: Tue Jan 24, 2006 7:49 am
by chaapaï
Hello all !!

there is a little bug for priority level to stop in the /etc/rc.d/init.d/zm
it's a little detail, but there is a long time this detail is here.

# chkconfig: 2345(*) 99(**) 99(***)
* - runlevel -ok
** priority to start - ok
*** priority to stop - ohohoh !!!

The priority to start is low: 99 (the last), but priority to stop is low: 99 (the last after mysql, network,..), this is create a little bug when you when to stop/reboot pc.

so change line in /ZoneMinder-1.22.0/scripts/zm.in
-# chkconfig: 2345 99 99
by
-# chkconfig: 2345 99 01

Code: Select all

--- ZoneMinder-1.22.0/scripts/zm.in.ori	2005-12-16 13:21:29.000000000 +0100
+++ ZoneMinder-1.22.0/scripts/zm.in	2005-12-16 13:21:29.000000000 +0100
@@ -1,6 +1,6 @@
 #!/bin/sh
 # description: Control ZoneMinder as a Service
-# chkconfig: 2345 99 99
+# chkconfig: 2345 99 01
 
 # Source function library.
 . /etc/rc.d/init.d/functions
Have a nice day !!

ps , i love you Phil (for your job) :D

Posted: Tue Jan 24, 2006 8:08 am
by cordel
Yeah we fixed this in the RPM and it has not got back yet.
Phil you might want to change that to # chkconfig: 2345 99 10
in the 1.22.1 release :D You well notice that it's in the patch I sent you :lol:
I'll send the updated version tonight as it seems to be working okay 8)

Posted: Tue Jan 24, 2006 8:15 am
by chaapaï
Don't worry, cordel ,i love you too :)
Have a nice day !!!

Posted: Tue Jan 24, 2006 8:20 am
by cordel
Image