SUSE 10 - Starting ZM with init script prob
SUSE 10 - Starting ZM with init script prob
Decided to ask for help before I broke something.
Installed ZM under SUSE 10. Everything seemed to be working, so I decided to tackle the init script. Created and installed init script according to the info kindly posted under Hints & Tips.
When the system starts, the Console indicates ZM is running but /dev/video appears in red.
If I stop and restart ZM, /dev/video appears in green and everything seems to be working normally.
I thought it might be a problem with my init script, so I tried several variations on the theme and the results were the same.
I don't know enough about linux to understand the problem, which might explain why I haven't had much success in fixing it. Any assistance appreciated.
Errors in zmdc.log:
03/30/06 14:05:43.964785 zmdc[6594].INF [Server starting at 06/03/30 14:05:43]
03/30/06 14:05:48.707629 zmdc[6632].INF ['zmc -d /dev/video0' started at 06/03/30 14:05:48]
03/30/06 14:05:48.708950 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:05:48, pid = 6632]
03/30/06 14:05:48.834610 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:05:48.835138 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:05:48.836509 zmdc[6636].INF ['zmc -d /dev/video0' started at 06/03/30 14:05:48]
03/30/06 14:05:48.837617 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:05:48, pid = 6636]
03/30/06 14:05:48.934821 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:05:49.683116 zmdc[6639].INF ['zma -m 1' started at 06/03/30 14:05:49]
03/30/06 14:05:49.684093 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:05:49, pid = 6639]
03/30/06 14:05:49.795901 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:05:49.796322 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:05:49.797695 zmdc[6643].INF ['zma -m 1' started at 06/03/30 14:05:49]
03/30/06 14:05:49.798815 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:05:49, pid = 6643]
03/30/06 14:05:49.819634 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:05:50.638716 zmdc[6646].INF ['zmfilter.pl' started at 06/03/30 14:05:50]
03/30/06 14:05:50.639847 zmdc[6594].INF ['zmfilter.pl' starting at 06/03/30 14:05:50, pid = 6646]
03/30/06 14:05:51.675900 zmdc[6651].INF ['zmaudit.pl -c' started at 06/03/30 14:05:51]
03/30/06 14:05:51.676951 zmdc[6594].INF ['zmaudit.pl -c' starting at 06/03/30 14:05:51, pid = 6651]
03/30/06 14:05:52.165576 zmdc[6658].INF ['zmwatch.pl' started at 06/03/30 14:05:52]
03/30/06 14:05:52.178703 zmdc[6594].INF ['zmwatch.pl' starting at 06/03/30 14:05:52, pid = 6658]
03/30/06 14:05:52.747293 zmdc[6594].INF ['zmupdate.pl -c' starting at 06/03/30 14:05:52, pid = 6663]
03/30/06 14:05:52.747294 zmdc[6663].INF ['zmupdate.pl -c' started at 06/03/30 14:05:52]
03/30/06 14:05:53.070806 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:05:53.072301 zmdc[6670].INF ['zmc -d /dev/video0' started at 06/03/30 14:05:53]
03/30/06 14:05:53.073667 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:05:53, pid = 6670]
03/30/06 14:05:53.134728 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:05:54.090838 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:05:54.098881 zmdc[6720].INF ['zma -m 1' started at 06/03/30 14:05:54]
03/30/06 14:05:54.099139 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:05:54, pid = 6720]
03/30/06 14:05:54.266143 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:06:03.039272 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:06:03.040785 zmdc[6735].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:03]
03/30/06 14:06:03.041755 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:03, pid = 6735]
03/30/06 14:06:03.066559 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:04.027313 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:06:04.028691 zmdc[6737].INF ['zma -m 1' started at 06/03/30 14:06:04]
03/30/06 14:06:04.029682 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:06:04, pid = 6737]
03/30/06 14:06:04.071657 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:06:23.008163 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:06:23.009698 zmdc[6784].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:23]
03/30/06 14:06:23.010841 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:23, pid = 6784]
03/30/06 14:06:23.098581 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:23.437827 zmdc[6788].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:23]
03/30/06 14:06:23.438876 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:23, pid = 6788]
03/30/06 14:06:23.464013 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:24.076229 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:06:24.084662 zmdc[6792].INF ['zma -m 1' started at 06/03/30 14:06:24]
03/30/06 14:06:24.092896 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:06:24, pid = 6792]
03/30/06 14:06:24.254374 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:06:33.751135 zmdc[6840].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:33]
03/30/06 14:06:33.752213 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:33, pid = 6840]
03/30/06 14:06:33.773695 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:44.270139 zmdc[6848].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:44]
03/30/06 14:06:44.271203 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:44, pid = 6848]
03/30/06 14:06:44.612546 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:55.524571 zmdc[6869].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:55]
03/30/06 14:06:55.525655 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:55, pid = 6869]
03/30/06 14:06:55.546809 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:04.010061 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:07:04.011650 zmdc[6876].INF ['zma -m 1' started at 06/03/30 14:07:04]
03/30/06 14:07:04.012828 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:07:04, pid = 6876]
03/30/06 14:07:04.241102 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:07:06.858146 zmdc[6889].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:06]
03/30/06 14:07:06.859378 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:06, pid = 6889]
03/30/06 14:07:06.882089 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:17.377643 zmdc[6911].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:17]
03/30/06 14:07:17.378756 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:17, pid = 6911]
03/30/06 14:07:17.400232 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:27.904297 zmdc[6915].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:27]
03/30/06 14:07:27.905469 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:27, pid = 6915]
03/30/06 14:07:27.927272 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:38.168083 zmdc[6922].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:38]
03/30/06 14:07:38.171817 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:38, pid = 6922]
03/30/06 14:07:38.251712 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:43.421271 zmdc[6594].INF ['zmfilter.pl ' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.423297 zmdc[6594].INF ['zmfilter.pl ' died, signal 14]
03/30/06 14:07:43.423614 zmdc[6594].INF ['zmupdate.pl -c' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.425348 zmdc[6594].INF ['zmupdate.pl -c' died, signal 14]
03/30/06 14:07:43.425665 zmdc[6594].INF ['zmaudit.pl -c' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.426918 zmdc[6594].INF ['zmaudit.pl -c' died, signal 14]
03/30/06 14:07:43.427242 zmdc[6594].INF ['zmwatch.pl ' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.428598 zmdc[6594].INF ['zmwatch.pl ' died, signal 14]
03/30/06 14:07:53.817477 zmdc[6594].INF [Server shutdown at 06/03/30 14:07:53]
Installed ZM under SUSE 10. Everything seemed to be working, so I decided to tackle the init script. Created and installed init script according to the info kindly posted under Hints & Tips.
When the system starts, the Console indicates ZM is running but /dev/video appears in red.
If I stop and restart ZM, /dev/video appears in green and everything seems to be working normally.
I thought it might be a problem with my init script, so I tried several variations on the theme and the results were the same.
I don't know enough about linux to understand the problem, which might explain why I haven't had much success in fixing it. Any assistance appreciated.
Errors in zmdc.log:
03/30/06 14:05:43.964785 zmdc[6594].INF [Server starting at 06/03/30 14:05:43]
03/30/06 14:05:48.707629 zmdc[6632].INF ['zmc -d /dev/video0' started at 06/03/30 14:05:48]
03/30/06 14:05:48.708950 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:05:48, pid = 6632]
03/30/06 14:05:48.834610 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:05:48.835138 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:05:48.836509 zmdc[6636].INF ['zmc -d /dev/video0' started at 06/03/30 14:05:48]
03/30/06 14:05:48.837617 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:05:48, pid = 6636]
03/30/06 14:05:48.934821 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:05:49.683116 zmdc[6639].INF ['zma -m 1' started at 06/03/30 14:05:49]
03/30/06 14:05:49.684093 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:05:49, pid = 6639]
03/30/06 14:05:49.795901 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:05:49.796322 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:05:49.797695 zmdc[6643].INF ['zma -m 1' started at 06/03/30 14:05:49]
03/30/06 14:05:49.798815 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:05:49, pid = 6643]
03/30/06 14:05:49.819634 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:05:50.638716 zmdc[6646].INF ['zmfilter.pl' started at 06/03/30 14:05:50]
03/30/06 14:05:50.639847 zmdc[6594].INF ['zmfilter.pl' starting at 06/03/30 14:05:50, pid = 6646]
03/30/06 14:05:51.675900 zmdc[6651].INF ['zmaudit.pl -c' started at 06/03/30 14:05:51]
03/30/06 14:05:51.676951 zmdc[6594].INF ['zmaudit.pl -c' starting at 06/03/30 14:05:51, pid = 6651]
03/30/06 14:05:52.165576 zmdc[6658].INF ['zmwatch.pl' started at 06/03/30 14:05:52]
03/30/06 14:05:52.178703 zmdc[6594].INF ['zmwatch.pl' starting at 06/03/30 14:05:52, pid = 6658]
03/30/06 14:05:52.747293 zmdc[6594].INF ['zmupdate.pl -c' starting at 06/03/30 14:05:52, pid = 6663]
03/30/06 14:05:52.747294 zmdc[6663].INF ['zmupdate.pl -c' started at 06/03/30 14:05:52]
03/30/06 14:05:53.070806 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:05:53.072301 zmdc[6670].INF ['zmc -d /dev/video0' started at 06/03/30 14:05:53]
03/30/06 14:05:53.073667 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:05:53, pid = 6670]
03/30/06 14:05:53.134728 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:05:54.090838 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:05:54.098881 zmdc[6720].INF ['zma -m 1' started at 06/03/30 14:05:54]
03/30/06 14:05:54.099139 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:05:54, pid = 6720]
03/30/06 14:05:54.266143 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:06:03.039272 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:06:03.040785 zmdc[6735].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:03]
03/30/06 14:06:03.041755 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:03, pid = 6735]
03/30/06 14:06:03.066559 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:04.027313 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:06:04.028691 zmdc[6737].INF ['zma -m 1' started at 06/03/30 14:06:04]
03/30/06 14:06:04.029682 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:06:04, pid = 6737]
03/30/06 14:06:04.071657 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:06:23.008163 zmdc[6594].INF [Starting pending process, zmc -d /dev/video0]
03/30/06 14:06:23.009698 zmdc[6784].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:23]
03/30/06 14:06:23.010841 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:23, pid = 6784]
03/30/06 14:06:23.098581 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:23.437827 zmdc[6788].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:23]
03/30/06 14:06:23.438876 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:23, pid = 6788]
03/30/06 14:06:23.464013 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:24.076229 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:06:24.084662 zmdc[6792].INF ['zma -m 1' started at 06/03/30 14:06:24]
03/30/06 14:06:24.092896 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:06:24, pid = 6792]
03/30/06 14:06:24.254374 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:06:33.751135 zmdc[6840].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:33]
03/30/06 14:06:33.752213 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:33, pid = 6840]
03/30/06 14:06:33.773695 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:44.270139 zmdc[6848].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:44]
03/30/06 14:06:44.271203 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:44, pid = 6848]
03/30/06 14:06:44.612546 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:06:55.524571 zmdc[6869].INF ['zmc -d /dev/video0' started at 06/03/30 14:06:55]
03/30/06 14:06:55.525655 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:06:55, pid = 6869]
03/30/06 14:06:55.546809 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:04.010061 zmdc[6594].INF [Starting pending process, zma -m 1]
03/30/06 14:07:04.011650 zmdc[6876].INF ['zma -m 1' started at 06/03/30 14:07:04]
03/30/06 14:07:04.012828 zmdc[6594].INF ['zma -m 1' starting at 06/03/30 14:07:04, pid = 6876]
03/30/06 14:07:04.241102 zmdc[6594].ERR ['zma -m 1' crashed, exit status 255]
03/30/06 14:07:06.858146 zmdc[6889].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:06]
03/30/06 14:07:06.859378 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:06, pid = 6889]
03/30/06 14:07:06.882089 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:17.377643 zmdc[6911].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:17]
03/30/06 14:07:17.378756 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:17, pid = 6911]
03/30/06 14:07:17.400232 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:27.904297 zmdc[6915].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:27]
03/30/06 14:07:27.905469 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:27, pid = 6915]
03/30/06 14:07:27.927272 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:38.168083 zmdc[6922].INF ['zmc -d /dev/video0' started at 06/03/30 14:07:38]
03/30/06 14:07:38.171817 zmdc[6594].INF ['zmc -d /dev/video0' starting at 06/03/30 14:07:38, pid = 6922]
03/30/06 14:07:38.251712 zmdc[6594].ERR ['zmc -d /dev/video0' crashed, exit status 255]
03/30/06 14:07:43.421271 zmdc[6594].INF ['zmfilter.pl ' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.423297 zmdc[6594].INF ['zmfilter.pl ' died, signal 14]
03/30/06 14:07:43.423614 zmdc[6594].INF ['zmupdate.pl -c' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.425348 zmdc[6594].INF ['zmupdate.pl -c' died, signal 14]
03/30/06 14:07:43.425665 zmdc[6594].INF ['zmaudit.pl -c' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.426918 zmdc[6594].INF ['zmaudit.pl -c' died, signal 14]
03/30/06 14:07:43.427242 zmdc[6594].INF ['zmwatch.pl ' stopping at 06/03/30 14:07:43]
03/30/06 14:07:43.428598 zmdc[6594].INF ['zmwatch.pl ' died, signal 14]
03/30/06 14:07:53.817477 zmdc[6594].INF [Server shutdown at 06/03/30 14:07:53]
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Yes, I can confirm that I have a /dev/video0 device file. I'm using a Kodicom 4400R card and currently testing with 1 camera.
No /dev/video0 errors when I start and stop ZM via console or command line. I rec've /dev/video0 errors only in relation to attempts to run as service at system boot.
zmdc.log when zm is started and stopped from console:
03/30/06 17:05:06.000450 zmdc[6564].INF [Server shutdown at 06/03/30 17:05:06]
03/30/06 17:05:24.745523 zmdc[6993].INF [Server starting at 06/03/30 17:05:24]
03/30/06 17:05:28.566188 zmdc[7016].INF ['zmc -d /dev/video0' started at 06/03/30 17:05:28]
03/30/06 17:05:28.567566 zmdc[6993].INF ['zmc -d /dev/video0' starting at 06/03/30 17:05:28, pid = 7016]
03/30/06 17:05:29.094603 zmdc[7020].INF ['zma -m 1' started at 06/03/30 17:05:29]
03/30/06 17:05:29.095587 zmdc[6993].INF ['zma -m 1' starting at 06/03/30 17:05:29, pid = 7020]
03/30/06 17:05:29.617981 zmdc[7024].INF ['zmfilter.pl' started at 06/03/30 17:05:29]
03/30/06 17:05:29.619059 zmdc[6993].INF ['zmfilter.pl' starting at 06/03/30 17:05:29, pid = 7024]
03/30/06 17:05:30.269245 zmdc[7028].INF ['zmaudit.pl -c' started at 06/03/30 17:05:30]
03/30/06 17:05:30.270423 zmdc[6993].INF ['zmaudit.pl -c' starting at 06/03/30 17:05:30, pid = 7028]
03/30/06 17:05:30.614463 zmdc[7034].INF ['zmwatch.pl' started at 06/03/30 17:05:30]
03/30/06 17:05:30.615413 zmdc[6993].INF ['zmwatch.pl' starting at 06/03/30 17:05:30, pid = 7034]
03/30/06 17:05:30.867599 zmdc[6993].INF ['zmupdate.pl -c' starting at 06/03/30 17:05:30, pid = 7038]
03/30/06 17:05:30.870557 zmdc[7038].INF ['zmupdate.pl -c' started at 06/03/30 17:05:30]
03/30/06 17:05:52.448983 zmdc[6993].INF ['zmupdate.pl -c' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.450761 zmdc[6993].INF ['zmupdate.pl -c' died, signal 14]
03/30/06 17:05:52.451127 zmdc[6993].INF ['zmwatch.pl ' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.452407 zmdc[6993].INF ['zmwatch.pl ' died, signal 14]
03/30/06 17:05:52.452716 zmdc[6993].INF ['zmaudit.pl -c' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.453990 zmdc[6993].INF ['zmaudit.pl -c' died, signal 14]
03/30/06 17:05:52.454319 zmdc[6993].INF ['zmfilter.pl ' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.456330 zmdc[6993].INF ['zmfilter.pl ' died, signal 14]
03/30/06 17:05:52.456665 zmdc[6993].INF ['zmc -d /dev/video0' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.518161 zmdc[6993].INF ['zmc -d /dev/video0' died]
03/30/06 17:05:52.518564 zmdc[6993].INF ['zma -m 1' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.993347 zmdc[6993].INF ['zma -m 1' died]
03/30/06 17:06:03.328304 zmdc[6993].INF [Server shutdown at 06/03/30 17:06:03]
No /dev/video0 errors when I start and stop ZM via console or command line. I rec've /dev/video0 errors only in relation to attempts to run as service at system boot.
zmdc.log when zm is started and stopped from console:
03/30/06 17:05:06.000450 zmdc[6564].INF [Server shutdown at 06/03/30 17:05:06]
03/30/06 17:05:24.745523 zmdc[6993].INF [Server starting at 06/03/30 17:05:24]
03/30/06 17:05:28.566188 zmdc[7016].INF ['zmc -d /dev/video0' started at 06/03/30 17:05:28]
03/30/06 17:05:28.567566 zmdc[6993].INF ['zmc -d /dev/video0' starting at 06/03/30 17:05:28, pid = 7016]
03/30/06 17:05:29.094603 zmdc[7020].INF ['zma -m 1' started at 06/03/30 17:05:29]
03/30/06 17:05:29.095587 zmdc[6993].INF ['zma -m 1' starting at 06/03/30 17:05:29, pid = 7020]
03/30/06 17:05:29.617981 zmdc[7024].INF ['zmfilter.pl' started at 06/03/30 17:05:29]
03/30/06 17:05:29.619059 zmdc[6993].INF ['zmfilter.pl' starting at 06/03/30 17:05:29, pid = 7024]
03/30/06 17:05:30.269245 zmdc[7028].INF ['zmaudit.pl -c' started at 06/03/30 17:05:30]
03/30/06 17:05:30.270423 zmdc[6993].INF ['zmaudit.pl -c' starting at 06/03/30 17:05:30, pid = 7028]
03/30/06 17:05:30.614463 zmdc[7034].INF ['zmwatch.pl' started at 06/03/30 17:05:30]
03/30/06 17:05:30.615413 zmdc[6993].INF ['zmwatch.pl' starting at 06/03/30 17:05:30, pid = 7034]
03/30/06 17:05:30.867599 zmdc[6993].INF ['zmupdate.pl -c' starting at 06/03/30 17:05:30, pid = 7038]
03/30/06 17:05:30.870557 zmdc[7038].INF ['zmupdate.pl -c' started at 06/03/30 17:05:30]
03/30/06 17:05:52.448983 zmdc[6993].INF ['zmupdate.pl -c' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.450761 zmdc[6993].INF ['zmupdate.pl -c' died, signal 14]
03/30/06 17:05:52.451127 zmdc[6993].INF ['zmwatch.pl ' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.452407 zmdc[6993].INF ['zmwatch.pl ' died, signal 14]
03/30/06 17:05:52.452716 zmdc[6993].INF ['zmaudit.pl -c' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.453990 zmdc[6993].INF ['zmaudit.pl -c' died, signal 14]
03/30/06 17:05:52.454319 zmdc[6993].INF ['zmfilter.pl ' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.456330 zmdc[6993].INF ['zmfilter.pl ' died, signal 14]
03/30/06 17:05:52.456665 zmdc[6993].INF ['zmc -d /dev/video0' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.518161 zmdc[6993].INF ['zmc -d /dev/video0' died]
03/30/06 17:05:52.518564 zmdc[6993].INF ['zma -m 1' stopping at 06/03/30 17:05:52]
03/30/06 17:05:52.993347 zmdc[6993].INF ['zma -m 1' died]
03/30/06 17:06:03.328304 zmdc[6993].INF [Server shutdown at 06/03/30 17:06:03]
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact:
Good morning!
1) Yes, ZM works if started manually, but fails (dev/vid in red) if started on boot.
2) No, I can't say with certainty that the bttv drivers are installed by the time ZM starts, but that's due to ignorance on my part. Linux is new to me.
I can tell you that ZM is the last item to load on boot. These are the final lines in boot.msg:
Starting ZoneMinder: success
Master Resource Control: runlevel 5 has been reached
Skipped services in runlevel 5: smbfs nfs
<notice>killproc: kill(4723,3)
I can also tell you that when I reboot and run lsmod, I see bttv and related modules listed (kernel 2.6.13)
I forgot to mention in my first post that ZM also works when I restart by entering the following command in root shell: /etc/init.d/zm restart
If I'm the only one having this problem with SUSE 10, then perhaps a fresh install of OS and ZM would resolve the issue. That approach seems to have worked for others.
1) Yes, ZM works if started manually, but fails (dev/vid in red) if started on boot.
2) No, I can't say with certainty that the bttv drivers are installed by the time ZM starts, but that's due to ignorance on my part. Linux is new to me.
I can tell you that ZM is the last item to load on boot. These are the final lines in boot.msg:
Starting ZoneMinder: success
Master Resource Control: runlevel 5 has been reached
Skipped services in runlevel 5: smbfs nfs
<notice>killproc: kill(4723,3)
I can also tell you that when I reboot and run lsmod, I see bttv and related modules listed (kernel 2.6.13)
I forgot to mention in my first post that ZM also works when I restart by entering the following command in root shell: /etc/init.d/zm restart
If I'm the only one having this problem with SUSE 10, then perhaps a fresh install of OS and ZM would resolve the issue. That approach seems to have worked for others.
-
- Posts: 8
- Joined: Sat Feb 25, 2006 7:14 pm
Corey,
Apache user is wwwrun:www (/etc/apache2/uid.conf)
After ZM started manually, ran ps -Af. Excerpt of results:
wwwrun 6458 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6459 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6460 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6461 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6462 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7178 6243 0 17:55 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7285 6243 0 17:59 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7286 6243 0 17:59 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7287 6243 0 17:59 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7665 1 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl startup
wwwrun 7688 7665 0 18:20 ? 00:00:10 /usr/local/bin/zmc -d /dev/video0
wwwrun 7692 7665 0 18:20 ? 00:00:04 /usr/local/bin/zma -m 1
wwwrun 7696 7665 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmfilter.pl
wwwrun 7700 7665 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -c
wwwrun 7705 7665 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
wwwrun 7710 7665 0 18:20 ? 00:00:00 /usr/bin/perl -w /usr/local/bin/zmupdate.pl -c
After attempt to start ZM as service at boot (console running but /dev/video in red). Excerpt of results:
wwwrun 6436 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6437 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6438 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6439 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6440 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6450 1 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl startup
wwwrun 6550 6450 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmfilter.pl
wwwrun 6561 6450 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -c
wwwrun 6571 6450 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
wwwrun 6576 6450 0 23:00 ? 00:00:00 /usr/bin/perl -w /usr/local/bin/zmupdate.pl -c
wwwrun 7792 6197 0 23:04 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7840 6571 0 23:05 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl restart zmc -d /dev/video0
1000 7842 7832 0 23:05 pts/1 00:00:00 ps -Af
I've posted excerpts of both sets of results for the sake of comparison. I can see the difference, but I don't know how to interpret it.
Apache user is wwwrun:www (/etc/apache2/uid.conf)
After ZM started manually, ran ps -Af. Excerpt of results:
wwwrun 6458 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6459 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6460 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6461 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6462 6243 0 17:47 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7178 6243 0 17:55 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7285 6243 0 17:59 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7286 6243 0 17:59 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7287 6243 0 17:59 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7665 1 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl startup
wwwrun 7688 7665 0 18:20 ? 00:00:10 /usr/local/bin/zmc -d /dev/video0
wwwrun 7692 7665 0 18:20 ? 00:00:04 /usr/local/bin/zma -m 1
wwwrun 7696 7665 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmfilter.pl
wwwrun 7700 7665 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -c
wwwrun 7705 7665 0 18:20 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
wwwrun 7710 7665 0 18:20 ? 00:00:00 /usr/bin/perl -w /usr/local/bin/zmupdate.pl -c
After attempt to start ZM as service at boot (console running but /dev/video in red). Excerpt of results:
wwwrun 6436 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6437 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6438 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6439 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6440 6197 0 23:00 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 6450 1 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl startup
wwwrun 6550 6450 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmfilter.pl
wwwrun 6561 6450 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmaudit.pl -c
wwwrun 6571 6450 0 23:00 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmwatch.pl
wwwrun 6576 6450 0 23:00 ? 00:00:00 /usr/bin/perl -w /usr/local/bin/zmupdate.pl -c
wwwrun 7792 6197 0 23:04 ? 00:00:00 /usr/sbin/httpd2-prefork -f /etc/apache2/httpd.conf
wwwrun 7840 6571 0 23:05 ? 00:00:00 /usr/bin/perl -wT /usr/local/bin/zmdc.pl restart zmc -d /dev/video0
1000 7842 7832 0 23:05 pts/1 00:00:00 ps -Af
I've posted excerpts of both sets of results for the sake of comparison. I can see the difference, but I don't know how to interpret it.
-
- Posts: 8
- Joined: Sat Feb 25, 2006 7:14 pm
Hi,
How are your setup for the card?
According to http://www.linuxtv.org/v4lwiki/index.php/Kodicom_4400R
it should be installed as this:
modprobe bttv gbuffers=16 card=133,132,133,133
I know that SuSe is a little picky about setting up a videocard. I had to modify the startup script to be able to use my 4-port card.
Otherwise SuSe starts with a basic bttv setup. I think you should modify somewhere in /etc/sysconfig/hardware.
I am working late tonight and will not have the time to check my setup until tomorrow, I will get back here with my findings.
Sincerely,
Mikael
How are your setup for the card?
According to http://www.linuxtv.org/v4lwiki/index.php/Kodicom_4400R
it should be installed as this:
modprobe bttv gbuffers=16 card=133,132,133,133
I know that SuSe is a little picky about setting up a videocard. I had to modify the startup script to be able to use my 4-port card.
Otherwise SuSe starts with a basic bttv setup. I think you should modify somewhere in /etc/sysconfig/hardware.
I am working late tonight and will not have the time to check my setup until tomorrow, I will get back here with my findings.
Sincerely,
Mikael
Good morning, Mikael.
The card was installed according to the wiki using modprobe bttv gbuffers=16 card=133,132,133,133
I can confirm the increased buffer setting in /sys/module/bttv/parameters/gbuffers and card settings in /sys/module/bttv/parameters/card.
I look forward to reading your findings. Please let me know how you modified your start-up script for your 4-port card. That might point me in the right direction.
Just in case there is a slight diff in file structure, etc., I should mention that I'm running SUSE Linux 10 (not OSS) and I believe you're running Server.
Thank you for your assistance.
The card was installed according to the wiki using modprobe bttv gbuffers=16 card=133,132,133,133
I can confirm the increased buffer setting in /sys/module/bttv/parameters/gbuffers and card settings in /sys/module/bttv/parameters/card.
I look forward to reading your findings. Please let me know how you modified your start-up script for your 4-port card. That might point me in the right direction.
Just in case there is a slight diff in file structure, etc., I should mention that I'm running SUSE Linux 10 (not OSS) and I believe you're running Server.
Thank you for your assistance.
-
- Posts: 8
- Joined: Sat Feb 25, 2006 7:14 pm
Hi,
I have now looked at my config.
When I run lspci I get one line like this:
0000:00:12.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
In /etc/sysconfig/hardware I have a number of files, in my case the file I was interested in was called hwcfg-bus-pci-0000:00:12:00
This file was empty, or as I recall, did not contain all info.
My file now looks like this:
# bttv
#
MODULE='bttv'
STARTMODE='auto'
MODULE_OPTIONS='card=77'
Your file should contain:
# bttv
#
MODULE='bttv'
STARTMODE='auto'
MODULE_OPTIONS='gbuffers=16 card=133,132,133,133'
My bttv now loads when I startup my machine, without this modification it did load, but was loaded with wrong parameters and zoneminder did not work.
Another thing I have found out is that if I start up the machine without power up the camera I always get a green 'picture'. To solve this I have to shutdown zoneminder, apply power to the camera, and then startup zoneminder again.
Hope this will help.
I have now looked at my config.
When I run lspci I get one line like this:
0000:00:12.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
In /etc/sysconfig/hardware I have a number of files, in my case the file I was interested in was called hwcfg-bus-pci-0000:00:12:00
This file was empty, or as I recall, did not contain all info.
My file now looks like this:
# bttv
#
MODULE='bttv'
STARTMODE='auto'
MODULE_OPTIONS='card=77'
Your file should contain:
# bttv
#
MODULE='bttv'
STARTMODE='auto'
MODULE_OPTIONS='gbuffers=16 card=133,132,133,133'
My bttv now loads when I startup my machine, without this modification it did load, but was loaded with wrong parameters and zoneminder did not work.
Another thing I have found out is that if I start up the machine without power up the camera I always get a green 'picture'. To solve this I have to shutdown zoneminder, apply power to the camera, and then startup zoneminder again.
Hope this will help.
Hi!
Thank you for checking your config settings.
When I run lspci, I get:
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
In /etc/sysconfig/hardware, I do not have any files corresponding to the video controller. I have hwcfg files corresponding to other PCI devices, but not the capture card.
So, using your example, I created the config files:
hwcfg-bus-pci-0000:02:0c.0
hwcfg-bus-pci-0000:02:0d.0
hwcfg-bus-pci-0000:02:0e.0
hwcfg-bus-pci-0000:02:0f.0
containing the module options as in your post.
I was hopeful this would resolve the problem, but it didn't. Same result on reboot.
I've performed a backup and I think I'm ready to reinstall the OS and ZM. The card was installed after the OS, so perhaps a fresh install is in order. I'm curious to see whether that solves the problem at boot. I'll let you know how it goes.
Thanks again.
Thank you for checking your config settings.
When I run lspci, I get:
02:0c.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0c.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:0d.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0d.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:0e.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0e.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
02:0f.0 Multimedia video controller: Brooktree Corporation Bt878 Video Capture (rev 11)
02:0f.1 Multimedia controller: Brooktree Corporation Bt878 Audio Capture (rev 11)
In /etc/sysconfig/hardware, I do not have any files corresponding to the video controller. I have hwcfg files corresponding to other PCI devices, but not the capture card.
So, using your example, I created the config files:
hwcfg-bus-pci-0000:02:0c.0
hwcfg-bus-pci-0000:02:0d.0
hwcfg-bus-pci-0000:02:0e.0
hwcfg-bus-pci-0000:02:0f.0
containing the module options as in your post.
I was hopeful this would resolve the problem, but it didn't. Same result on reboot.
I've performed a backup and I think I'm ready to reinstall the OS and ZM. The card was installed after the OS, so perhaps a fresh install is in order. I'm curious to see whether that solves the problem at boot. I'll let you know how it goes.
Thanks again.
-
- Posts: 8
- Joined: Sat Feb 25, 2006 7:14 pm
Hi again,
I have just checked out one other SuSe-box I have and on this one I have done another approach.
I have entered in the /etc/modprobe.conf.local the following line
options bttv card=77,0
In your case, enter your setup line here.
Also, do a dmesg and look for the startup line for the bttv card:
dmesg | grep bttv
I got:
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77, insmod option]
As your card have 4 bt878 chip on it it will respond 4 times.
Mikael
I have just checked out one other SuSe-box I have and on this one I have done another approach.
I have entered in the /etc/modprobe.conf.local the following line
options bttv card=77,0
In your case, enter your setup line here.
Also, do a dmesg and look for the startup line for the bttv card:
dmesg | grep bttv
I got:
bttv0: using: GrandTec Multi Capture Card (Bt878) [card=77, insmod option]
As your card have 4 bt878 chip on it it will respond 4 times.
Mikael
Hi!
When the card was installed, I entered the options in modprobe.conf.local:
alias char-major-81 bttv
options bttv gbuffers=16 card=133,132,133,133 tuner=4,4,4,4
linux:~ # dmesg | grep bttv
bttv: driver version 0.9.16 loaded
bttv: using 16 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:02:0c.0, irq: 225, latency: 64, mmio: 0xf8007000
bttv0: using: Kodicom 4400R (slave) [card=133,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=4
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .<6>usbcore: registered new driver hiddev
(... Continues for additional chips)
Everything seems to play nicely together when ZM is started manually. I'll post my init.script so you can take a look:
#!/bin/sh
# description: Control ZoneMinder as a Service
# chkconfig: 2345 99 00
prog=ZoneMinder
ZM_PATH_BIN="/usr/local/bin"
command="$ZM_PATH_BIN/zmpkg.pl"
start() {
echo -n "Starting $prog: "
$command start
RETVAL=$?
[ $RETVAL = 0 ] && echo success
[ $RETVAL != 0 ] && echo failure
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/zm
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
$command stop
RETVAL=$?
[ $RETVAL = 0 ] && echo success
[ $RETVAL != 0 ] && echo failure
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/zm
}
status() {
result=`$command status`
if [ "$result" = "running" ]; then
echo "ZoneMinder is running"
RETVAL=0
else
echo "ZoneMinder is stopped"
RETVAL=1
fi
}
case "$1" in
'start')
start
;;
'stop')
stop
;;
'restart')
stop
start
;;
'status')
status
;;
*)
echo "Usage: $0 { start | stop | restart | status }"
RETVAL=1
;;
esac
exit $RETVAL
I can start, stop and restart ZM using /etc/init.d/zm start (/stop /restart), so I was running on the assumption that my init script was OK. Let me know if that was a faulty assumption and I've missed something.
Password:
linux:~ # /etc/init.d/zm restart
Stopping ZoneMinder: success
Starting ZoneMinder: success
linux:~ #
When the card was installed, I entered the options in modprobe.conf.local:
alias char-major-81 bttv
options bttv gbuffers=16 card=133,132,133,133 tuner=4,4,4,4
linux:~ # dmesg | grep bttv
bttv: driver version 0.9.16 loaded
bttv: using 16 buffers with 2080k (520 pages) each for capture
bttv: Bt8xx card found (0).
bttv0: Bt878 (rev 17) at 0000:02:0c.0, irq: 225, latency: 64, mmio: 0xf8007000
bttv0: using: Kodicom 4400R (slave) [card=133,insmod option]
bttv0: gpio: en=00000000, out=00000000 in=00ffffff [init]
bttv0: using tuner=4
bttv0: i2c: checking for TDA9887 @ 0x86... not found
bttv0: registered device video0
bttv0: registered device vbi0
bttv0: PLL: 28636363 => 35468950 .<6>usbcore: registered new driver hiddev
(... Continues for additional chips)
Everything seems to play nicely together when ZM is started manually. I'll post my init.script so you can take a look:
#!/bin/sh
# description: Control ZoneMinder as a Service
# chkconfig: 2345 99 00
prog=ZoneMinder
ZM_PATH_BIN="/usr/local/bin"
command="$ZM_PATH_BIN/zmpkg.pl"
start() {
echo -n "Starting $prog: "
$command start
RETVAL=$?
[ $RETVAL = 0 ] && echo success
[ $RETVAL != 0 ] && echo failure
echo
[ $RETVAL = 0 ] && touch /var/lock/subsys/zm
return $RETVAL
}
stop() {
echo -n $"Stopping $prog: "
$command stop
RETVAL=$?
[ $RETVAL = 0 ] && echo success
[ $RETVAL != 0 ] && echo failure
echo
[ $RETVAL = 0 ] && rm -f /var/lock/subsys/zm
}
status() {
result=`$command status`
if [ "$result" = "running" ]; then
echo "ZoneMinder is running"
RETVAL=0
else
echo "ZoneMinder is stopped"
RETVAL=1
fi
}
case "$1" in
'start')
start
;;
'stop')
stop
;;
'restart')
stop
start
;;
'status')
status
;;
*)
echo "Usage: $0 { start | stop | restart | status }"
RETVAL=1
;;
esac
exit $RETVAL
I can start, stop and restart ZM using /etc/init.d/zm start (/stop /restart), so I was running on the assumption that my init script was OK. Let me know if that was a faulty assumption and I've missed something.
Password:
linux:~ # /etc/init.d/zm restart
Stopping ZoneMinder: success
Starting ZoneMinder: success
linux:~ #