Page 1 of 1

FOO not installed

Posted: Fri Nov 18, 2005 7:07 pm
by germandms
hello
treatment to install zm in suse 10,0 despues of several problems finally compiles all thanks to the cord aid but when beginning the service gives east error to me.

# /etc/init.d/zm
/usr/sbin/FOO not installed


How install FOO for Suse 10.0

Posted: Sat Nov 19, 2005 9:17 pm
by zoneminder
I have no idea what this is, I've never heard of anything called FOO!

Anyone else?

Phil

Posted: Mon Jan 02, 2006 6:13 pm
by Cylindric
I think germandms has copied the sample init script that ships with Suse. (Not sure about other distros)

It's basically a template script that is called when entering various runlevels to start and stop each service.

This template uses the nane "FOO" as a placeholder for the real program to execute, and should be replaced by relevent zoneminder scripts and messages.

I'm currently trying to install ZM on Suse myself, and have been mostly successful. Once I have my zm init script complete, I'll post it here.

(Bump this thread if I haven't replied in a week or so, it problably means I forgot to post it!)

Posted: Mon Jan 02, 2006 7:36 pm
by zoneminder
That would be good. If you can come up with a Suse script I'll include it in future releases.

Phil

Posted: Mon Jan 02, 2006 9:41 pm
by Cylindric
Okay, I've knocked one up from the template provided by suse. I'm no expert on shell-scripting or LSB compatible service control scripts, so I would strongly recommend you get someone more experienced to look this over before including it in any distributions.

I don't have access to a lot of kit at the moment, so I've only tested this on one installation of SUSE 10, but it looks okay so far. (It needs more testing on some of the actions like calling 'start' when already started, 'stop' when stopped, and also catching failed starts and so on.
  • Download zoneminder-rc-1.0.0.gz and put it somewhere
  • extract it
    gunzip zoneminder-rc-1.0.0.gz
  • copy the file into the rc.d directory, and rename it.
    cp zoneminder-rc-1.0.0 /etc/init.d/zoneminder
  • make it executable
    chmod 744 /etc/init.d/zoneminder
  • there should be a symlink to this in /sbin
    ln -s /etc/init.d/zoneminder /sbin/rczoneminder
  • install it so that the init scripts 'see' it, and YaST is aware of it too
    insserv /etc/init.d/zoneminder