FOO not installed

Support and queries relating to all previous versions of ZoneMinder
Locked
germandms
Posts: 40
Joined: Mon Oct 03, 2005 2:19 pm

FOO not installed

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I have no idea what this is, I've never heard of anything called FOO!

Anyone else?

Phil
User avatar
Cylindric
Posts: 44
Joined: Mon Jan 02, 2006 2:41 pm
Location: Essex, UK

Post 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!)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

That would be good. If you can come up with a Suse script I'll include it in future releases.

Phil
User avatar
Cylindric
Posts: 44
Joined: Mon Jan 02, 2006 2:41 pm
Location: Essex, UK

Post 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
Locked