Use pidfile variable instead of hardcoded value. Fixed parameter passed to zmupdate.

git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3208 e3e1d417-86f3-4887-817a-d78f3d33393f
This commit is contained in:
stan 2010-11-28 21:22:05 +00:00
parent 6c547aba85
commit c3918a7ac4
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@ start()
zmupdate || return $?
loadconf || return $?
#Make sure the directory for our PID folder exists or create one.
[ ! -d /var/run/zm ] \
[ ! -d $pidfile ] \
&& mkdir -m 774 $pidfile \
&& chown $ZM_WEB_USER:$ZM_WEB_GROUP $pidfile
#Make sure the folder for the socks file exists or create one
@ -82,7 +82,7 @@ zmstatus()
zmupdate()
{
if [ -x $ZM_PATH_BIN/zm_update ]; then
$ZM_PATH_BIN/zm_update noi
$ZM_PATH_BIN/zm_update -f
fi
}