Init Script Help
Hopefully, this is another simple fix.
I have been trying to set up an old computer to be an itunes server using tangerine-0.3.0, so far I have sucessfully compiled tangerine and gotten it up and running. Now I'd like it to act like a service that I can set the runlevels with using chkconfig.
My question is: How do I set it up such that I can use the 'service' command to control the program? i.e. 'service tangerine start' or 'service tangerine stop'
So far I have created a script in /etc/rc.d/init.d called tangerine (and made it executable). I can start tangerine just by typing 'tangerine' (not using the service command) and running 'service tangerine status' reports that it is running and I can stop it using 'service tangerine stop'. However, when I try to start the daemon with 'service tangerine start' I get the following error:
"Starting tangerine/bin/bash: tangerine: command not found"
The section in my init script for starting the daemon is as follows:
"case "$1" in
echo -n "Starting tangerine"
Any suggestions as to why the command 'tangerine isn't working in the script, but works fine when typed from the command line?
Any help is much appreciated.