RedHat/CentOS startup/shutdown script (chkconfig)

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
Post Reply
fcrossen
Posts: 16
Joined: Thu Jun 09, 2005 10:22 am
Location: Dublin, Ireland.

RedHat/CentOS startup/shutdown script (chkconfig)

Post by fcrossen »

Problem:

The supplied zm script for startup and shutdown was being invoked a bit late on a stock CentOS 3.4 box. Basically MySQL is being shutdown before Zoneminder and this was causing Zoneminder to choke when it tried to access the closed database, leading to problems umounting disks prior to power off.

Solution:

Make sure Zoneminder is being shutdown before MySQL. In my CentOS 3.4 box a stop priority of 30 is fine:

Code: Select all

#!/bin/sh
# description: Control ZoneMinder as a Service
# chkconfig: 2345 99 30
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for this. I think it's a bit broken on my box as well but I've never found the time to figure out how to fix it!

Phil
Post Reply