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!!
Startup Problems
Did you use the script from the contributions?
http://www.zoneminder.com/forums/viewto ... ntoo+start
Regards,
Corey
http://www.zoneminder.com/forums/viewto ... ntoo+start
Regards,
Corey
Here are some leads for you:
http://www.zoneminder.com/forums/viewto ... ght=gentoo
http://www.zoneminder.com/forums/viewto ... ght=gentoo
Corey
http://www.zoneminder.com/forums/viewto ... ght=gentoo
http://www.zoneminder.com/forums/viewto ... ght=gentoo
Corey
joky
I used this init script, found here on the forum
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
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}
}
Before you try the init script stop zoneminder from your web interface else once again it will fail
Hope this helps
Pete
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: