webcam server won't run from rc.local
by justwantin from LinuxQuestions.org on (#57AG4)
I have been trying out hawkeye, a fairly simple webcam server and would like to use it instead of mjpeg-streamer, however, when I run it at boot from rc.local or rc.M it appears to shut down after writing a pid number to it's pid file.
I can start the start hawkeye from an rc script when I am logged in and have a working server,Code:root@bpro9> /etc/rc.d/rc.hawkeye start
Starting hawkeye server daemon...
root@bpro9> ps -A | grep hawkeye
1402 ? 00:00:00 hawkeye
root@bpro9> /etc/rc.d/rc.hawkeye stop
Shutdown hawkeye gracefully...I can run that same script from rc.local when I am logged in and have a working serverCode:root@bpro9> /etc/rc.d/rc.local
Starting hawkeye server daemon...
root@bpro9> ps -A | grep hawkeye
1402 ? 00:00:00 hawkeye
root@bpro9> /etc/rc.d/rc.hawkeye stop
Shutdown hawkeye gracefully...and I can also have a working server if I just run hawkeye's CLI commandCode:root@bpro9> hawkeye -c /etc/hawkeye/hawkeye.conf &
[1] 1718
root@bpro9> ps -A | grep hawkeye
1718 pts/0 00:00:00 hawkeyein rc.local.
In each instance when I boot there will be a new pid file but hawkeye is not running. Can anyone give me a heads uop on this problem?


I can start the start hawkeye from an rc script when I am logged in and have a working server,Code:root@bpro9> /etc/rc.d/rc.hawkeye start
Starting hawkeye server daemon...
root@bpro9> ps -A | grep hawkeye
1402 ? 00:00:00 hawkeye
root@bpro9> /etc/rc.d/rc.hawkeye stop
Shutdown hawkeye gracefully...I can run that same script from rc.local when I am logged in and have a working serverCode:root@bpro9> /etc/rc.d/rc.local
Starting hawkeye server daemon...
root@bpro9> ps -A | grep hawkeye
1402 ? 00:00:00 hawkeye
root@bpro9> /etc/rc.d/rc.hawkeye stop
Shutdown hawkeye gracefully...and I can also have a working server if I just run hawkeye's CLI commandCode:root@bpro9> hawkeye -c /etc/hawkeye/hawkeye.conf &
[1] 1718
root@bpro9> ps -A | grep hawkeye
1718 pts/0 00:00:00 hawkeyein rc.local.
In each instance when I boot there will be a new pid file but hawkeye is not running. Can anyone give me a heads uop on this problem?