Some of my start-up scripts in /etc/rc.d/rc5.d are not working when passed start|stop|status commands. The files are symbolic links to the daemon in the preceding directory. When those are run with the commands everything is fine. I've tried recreating new links with no luck. Anybody have any ideas as to why the scripts are not working? Adam
On Thu, Oct 18, 2001 at 02:44:03PM -0400, Adam Oliver wrote:
Some of my start-up scripts in /etc/rc.d/rc5.d are not working when passed start|stop|status commands. The files are symbolic links to the daemon in the preceding directory. When those are run with the commands everything is fine. I've tried recreating new links with no luck. Anybody have any ideas as to why the scripts are not working?
Adam
It is not quite clear what you are saying. Do you mean the standard script links or ones you have made yourself ? Or are you trying to run these scripts after booting.. in that case they should have a wrapper called rc... whatever. For example rcnamed for the name server demon. If you are linking in your own local scripts you must follow the naming conventions for the symbolic links .. S##name amd K##name, where ## is a number. -- Regards Cliff
On 18 Oct 2001, Adam Oliver wrote:
Some of my start-up scripts in /etc/rc.d/rc5.d are not working when passed start|stop|status commands. The files are symbolic links to the daemon in the preceding directory. When those are run with the commands everything is fine. I've tried recreating new links with no luck. Anybody have any ideas as to why the scripts are not working?
What do you mean "they don't work"? When you run them manually [ /etc/init.d/rc5.d/my_command ] or upon changing to that runlevel [ init 5 ] ? Are the scripts executable [ ls -l /etc/init.d/my_command ]? -- noodlez: Karol Pietrzak PGP KeyID: 0x3A1446A0
On Thu, Oct 18, 2001 at 08:39:36PM -0400, Karol Pietrzak wrote:
On 18 Oct 2001, Adam Oliver wrote:
Some of my start-up scripts in /etc/rc.d/rc5.d are not working when passed start|stop|status commands. The files are symbolic links to the daemon in the preceding directory. When those are run with the commands everything is fine. I've tried recreating new links with no luck. Anybody have any ideas as to why the scripts are not working?
What do you mean "they don't work"? When you run them manually [ /etc/init.d/rc5.d/my_command ] or upon changing to that runlevel [ init 5 ] ? Are the scripts executable [ ls -l /etc/init.d/my_command ]?
I tried a little experiment here. I do not run inetd, so I tried to manually run the S** command to check the status. I also received no output. I ran the S** script for named, which I do run, to get the status. I received the expected result. Looking at the scripts it seems to me that the scripts will silently exit if the relevant environment variable is not set to YES, i.e. the START_ variable that the scripts inherit from /etc/rc.config. Conclusion ? Well check the START settings in /etc/rc.config. Although it is mysterious that the scripts run when you change the run-levels. Secondly try running the scripts through the normal interface that is used when your system is already running, in your case rcinetd and rcsamba, and see what result you get. You could also try putting an "echo $START_INETD" or whatever in the script to see what it says. -- Regards Cliff
participants (3)
-
Adam Oliver
-
Cliff Sarginson
-
Karol Pietrzak