add some lines to create /var/run/zm. These day /run is a tmpfs, so the zm dir needs to be created on each boot
parent
9d89fb3bcb
commit
2cd0237863
|
@ -17,10 +17,12 @@
|
|||
|
||||
prog=ZoneMinder
|
||||
ZM_PATH_BIN="/usr/bin"
|
||||
RUNDIR=/var/run/zm
|
||||
command="$ZM_PATH_BIN/zmpkg.pl"
|
||||
|
||||
start() {
|
||||
echo -n "Starting $prog: "
|
||||
mkdir -p $RUNDIR
|
||||
zmfix -a
|
||||
$command start
|
||||
RETVAL=$?
|
||||
|
|
Loading…
Reference in New Issue