From c3918a7ac46289366e57c34e0e53f08938cdae1e Mon Sep 17 00:00:00 2001 From: stan Date: Sun, 28 Nov 2010 21:22:05 +0000 Subject: [PATCH] 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 --- scripts/zm.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/zm.in b/scripts/zm.in index 1a26bdd56..1b7a7f2a3 100755 --- a/scripts/zm.in +++ b/scripts/zm.in @@ -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 }