Hi, I am running a program called rundns, which checks my dymanic ip address and adjusts it to keep my domain name pointed to my ip. I'd like to have it run on boot to runlevels 3 & 5. I downloaded a script from the developer's web site and advised me to place it in /etc/init./rc3.d and rc5.d respectively. Problem is that dosen't seem to work. The script is called S98rundns and has permissions of -rwxr-xr-x. I notice that most other scripts here are links to other files, but not sure how to set this up. In any case rundns does not run on boot to runlevel 5, or init 3. It shows as a failed service. The rundns binary is in /usr/bin and works find when started with the command line. Copy of the script as follows... ---------------- /#!/bin/sh/ /# Change this if your rundns executable is/ /# not in the directory /usr/bin/ RUNDNS=/usr/bin/rundns *case* "$1"* in* 'start'*)* /# Start rundns/ $RUNDNS /etc/rundns.conf *;;* 'stop'*)* /# Stop rundns/ $RUNDNS --stop *echo* *;;* **)* *echo* "Usage: $0 {start|stop}" *exit* 1 esac *exit* 0 ---------------- Any help would would be appreciated. Jim F -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 The Saturday 2006-07-22 at 18:17 -0500, Jim Flanagan wrote:
I am running a program called rundns, which checks my dymanic ip address and adjusts it to keep my domain name pointed to my ip. I'd like to have it run on boot to runlevels 3 & 5. I downloaded a script from the developer's web site and advised me to place it in /etc/init./rc3.d and rc5.d respectively. Problem is that dosen't seem to work.
Not in a default SuSE, no. Not currently (long explanation).
The script is called S98rundns and has permissions of -rwxr-xr-x. I notice that most other scripts here are links to other files, but not sure how to set this up.
Read the chapter "The SuSE boot concept" of the suse admin book. You can also read "man init.d". Then use /etc/init.d/skeleton as a starting point to _create_ your new rundns script. Hint: # Required-Start: $network $remote_fs $syslog - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Made with pgp4pine 1.76 iD8DBQFEwrVctTMYHG2NR9URAr0jAJ9pXRS2PqoIbL1XnBcbHxW4qqR6WwCfaYMG 60TultbYaxD/+G/ILCexZ6E= =BbCh -----END PGP SIGNATURE----- -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
I am running a program called rundns, which checks my dymanic ip address and adjusts it to keep my domain name pointed to my ip. I'd like to have it run on boot to runlevels 3 & 5. I downloaded a script from the developer's web site and advised me to place it in /etc/init./rc3.d and rc5.d respectively. Problem is that dosen't seem to work. The script is called S98rundns and has permissions of -rwxr-xr-x. I notice that most other scripts here are links to other files, but not sure how to set this up. In any case rundns does not run on boot to runlevel 5, or init 3. It shows as a failed service. Copy it to /etc/init.d, edit the script based on /etc/init.d/skeleton (use this for instructions as well). Then, insserv rundns should place
Jim Flanagan wrote: the links in the correct places. Reboot to test. HTH -- Joe Morris Registered Linux user 231871 -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
participants (3)
-
Carlos E. R.
-
Jim Flanagan
-
Joe Morris (NTM)