On Mon, Apr 6, 2009 at 5:52 PM, Carlos E. R.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Monday, 2009-04-06 at 17:25 -0500, Neal Hogan wrote:
After much hunting, I've failed to get an answer to my question.
How do I START an inet.d script?
I've written a script to run at level 5 (network +X) and have the R and S scripts in rc5.d.
If you copied or linked the script in rc5.d, that will not work in a SUSE system, and is documented. You need to use insserv, chkconfig, or yast to insert the links. If you do it manually, it will fail.
And in order for the script to be inserted, you need the script have the headers. See /etc/init.d/skeleton.compat for a sample and read the documentation.
Thanks for the responses. I have read the documentation and sample init.d scripts and have chconfig'd my script . . . I did all of this before posting the first time (sorry for not being clearer). The script definitely runs at runlevel 5 (it's status after boot is "running"), but the script isn't started automatically. I guess I'm missing something about init.d scripts. I thought that it would START the script at the particular runlevel. Note that I'm running OpenSUSE-11.1 w/gnome What I want is a script to start at boot time or as soon as it's finished booting and running X, etc. I'm in the (un)fortunate position of maintaining my parents machine and I want to have access to it whenever. It's behind a firewall, so I need to make an ssh tunnel that I can use to get at their machine (eg., ssh -R 4444:localhost:22 user@server). I've done this before on another system, where I just put the ssh script in their .xinitrc. But, the OpenSUSE system doesn't seem to require the .xinitrc, so I'm trying to accomplish this task without using it. Any suggestions would help and be appreciated.
- -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAknah6wACgkQtTMYHG2NR9VxdwCgkbzNdRrrTRw2TSZFDwlDVSI7 uZ8AnjvqXfK58o7rsl5EmaHEffSiYUll =/1le -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-- www.nealhogan.net www.lambdaserver.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org