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

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
chaapaï
Posts: 19
Joined: Fri Aug 13, 2004 2:26 pm
Location: France

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

Post 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
oooops, i'm sorry but i speak english like as spanish cow...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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)
User avatar
chaapaï
Posts: 19
Joined: Fri Aug 13, 2004 2:26 pm
Location: France

Post by chaapaï »

Don't worry, cordel ,i love you too :)
Have a nice day !!!
oooops, i'm sorry but i speak english like as spanish cow...
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

Image
Image
Image
3939663646337

It's better to keep your mouth shut and appear stupid than open it and remove all doubt.
-Mark Twain
Locked