Page 1 of 1

Startup Problems

Posted: Sun Feb 12, 2006 9:49 am
by joky
Hi,

I've got ZM running on my machine and just test it with a simple old usb-quickcam. Installation was easy on gentoo, cause it was masked i tried it by the provided sourcecode from this site. After adapting the bash script to the special init-bash-script needed by gentoo everything should be okay,.. Apache is doing everything quite OK, start&stopping of the daemon works by the web-interface.

BUT, start&stopping of the script via the init script (or directly via zmpkg.pl) doesn't work. The only thing i can see is in /var/log/messages:

Feb 12 11:48:26 fileserver zmpkg[4921]: INF [Command: start]

But it doesn't start the server, no processes are spawn and so on,.. can anyone help me??


Best thanks!!

Posted: Sun Feb 12, 2006 10:31 am
by cordel
Did you use the script from the contributions?
http://www.zoneminder.com/forums/viewto ... ntoo+start

Regards,
Corey

Posted: Sun Feb 12, 2006 10:40 am
by joky
the perl-script both bash's are based is "zmpkg.pl" wich doesn't work,...

fileserver ~ # /etc/init.d/zm start
* Starting ZoneMinder ... [ !! ]
fileserver ~ # zmpkg.pl start
fileserver ~ #

greets

Posted: Sun Feb 12, 2006 11:02 am
by cordel

Posted: Sun Feb 12, 2006 8:26 pm
by Pete M
joky

I used this init script, found here on the forum

Code: Select all

#!/sbin/runscript
# Start and stop zoneminder (for Gentoo)

opts="start stop status"

depend() {
        use mysql apache2
}

prog=ZoneMinder
ZM_PATH_BIN="/usr/local/bin"
command="$ZM_PATH_BIN/zmpkg.pl"

start() {
        ebegin "Starting $prog"
        $command start
        eend $? "Failed to start $prog"
}
stop() {
        ebegin "Stopping $prog"
        $command stop
        eend $? "Failed to stop $prog"
}
status() {
        result=`$command status`
        if [ "$result" = "running" ]; then
                echo "ZoneMinder is running"
                RETVAL=0
        else
                echo "ZoneMinder is stopped"
                RETVAL=1
        fi
        exit ${RETVAL}
}
And the only other gotcha is you have to give your user 'apache' shell access

Before you try the init script stop zoneminder from your web interface else once again it will fail

Hope this helps

Pete

Posted: Mon May 22, 2006 9:34 pm
by smirks
quick question about giving apache shell access...could this be a possible security risk? Just now starting to look at things from a secure point of view...so I'm probably being way too cautious...but just wanted to see what others think. Thanks~

Posted: Tue May 23, 2006 4:34 pm
by smirks
Ok I've done some research and it is a security issue...

sooo..What about updating coreutils?

Posted: Wed May 24, 2006 4:44 pm
by zoneminder
If you have sudo then you should not have to give apache shell access as far as I know.