Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Have a question / problem regarding the RC.LOCAL file. In the rc.local file I added aline which should start some software during boot-up. My rc.local looks like:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
The software "my-software" normally is started as root user (from CLI). However it seems that it is not loaed during my boot. Does anybody know how this can be realised so that the software is loaded no matter who actually logs in?
If nobody knows how to solve the rc.local problem I will need to do some deep research myself :-) - Does one of you know how to trace what is actually executed during startup?
So I will need a way to so that I can see more info during bootup, of even that the user has to confirm each command?
Check if you got the rc.local file twice.
I found an extra one in /etc/rc.d and that was the one that was executed at boot-time.
By the way: the one in /etc did not have the execute-bit set after clean install, so I think this one is redundant...
I've been running a game server for the last year and a half under RH7.3. I recently installed new hardware, and formated th drive with RH 9. I copied my scripts over, and of course made sure they are executable. One of the things I do is run a script from rc.local.
But it will not run.
Logged in as root, I enter the exact same line as I have in the rc.local file, and it runs fine. I can even cut and paste it, and it runs. Some thing is fishy with rc.local in RH 9. I'd like to know if anyone has solved this. Or am I forgetting something?
Alternately, where else could I locate this command to make it run at boot time?
My command is:
sh /home/gserver/bootup.sh
bootup.sh runs screen which runs supervise which keeps the game server running.
In Red Hat 7.3 apparently root had it's path set prior to running rc.local. But in RH9, I guess not. I put full path names in rc.local and the script it was trying to run, and now it works.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.