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:
parent
6c547aba85
commit
c3918a7ac4
|
@ -29,7 +29,7 @@ start()
|
||||||
zmupdate || return $?
|
zmupdate || return $?
|
||||||
loadconf || return $?
|
loadconf || return $?
|
||||||
#Make sure the directory for our PID folder exists or create one.
|
#Make sure the directory for our PID folder exists or create one.
|
||||||
[ ! -d /var/run/zm ] \
|
[ ! -d $pidfile ] \
|
||||||
&& mkdir -m 774 $pidfile \
|
&& mkdir -m 774 $pidfile \
|
||||||
&& chown $ZM_WEB_USER:$ZM_WEB_GROUP $pidfile
|
&& chown $ZM_WEB_USER:$ZM_WEB_GROUP $pidfile
|
||||||
#Make sure the folder for the socks file exists or create one
|
#Make sure the folder for the socks file exists or create one
|
||||||
|
@ -82,7 +82,7 @@ zmstatus()
|
||||||
zmupdate()
|
zmupdate()
|
||||||
{
|
{
|
||||||
if [ -x $ZM_PATH_BIN/zm_update ]; then
|
if [ -x $ZM_PATH_BIN/zm_update ]; then
|
||||||
$ZM_PATH_BIN/zm_update noi
|
$ZM_PATH_BIN/zm_update -f
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue