Hello everyone, this should be a challenge I think. I'm running SuSE 9.1 . I have a perl script that runs a proxy server designed for mobile web use. I would like to have an /etc/init.d/ script that controls this. I want it to have the standard start, stop, restart, and status command, just like the scripts used for dhcpd, network, smbd, etc. However, I don't want the script to return
running just beacuse the script file started, I want it to wait until the proxy server is actually running. I'm assuming I'll need to put something in my perl script that says something like, ok I'm acually running now.
This has been very difficult for me. I've tried working with the /etc/init.d/skeleton file as a basis, but all the existing /etc/init.d scripts are calling executable binary files, where mine is a perl script. The existing scripts use startproc. I looked in the man page for startproc, and under bugs, it says something about not being able to start things thru scripts. It cannot do this because it looks for the
script's inode in the running process list, when you are actually looking for whatever is
in the script to be running.
I really appreciate anything anyone can help me with. And If you need more information, please ask. It's hard to explain every single detail.
Thanks !