|
-
January 22nd, 2001, 02:13 PM
#1
editing the `rc.local` file
i`ve been editing the etc/rc.d/rc.local file, acording to the documentation i`ve read this file `cats` it`s content to the /etc/issue file, therefore it doesn`t allow the system to rewrite your edition of the `issue` file.
my question is, the edition of the rc.local file outputs it`s result inmediately, or only after a rebooting?
-
January 22nd, 2001, 10:42 PM
#2
rc.local is the last file read by init to initialize the system, therefore, it is typically on read during a boot. Although, you could execute the file manually.
If you are using redhat, the scripts in rc.local will overwrite any coustom /etc/issue file you create. Therefore, to retain a custom /etc/issue file, remark out the lines that tell rc.local to write the info it gathers to /etc/issue.
-
January 23rd, 2001, 10:12 AM
#3
thanks a lot danns, if you have a minute. i would like to ask two things:
- how can i manually execute that script?
- does this, i mean the rc.local overwritting the issue file, applies only to red hat?
thanks in advance.
-
January 23rd, 2001, 10:36 AM
#4
You can manually execute the rc.local file by using either:
sh /etc/rc.d/rc.local
or
./etc/rc.d/rc.local
I don't recommend executing this file since any services started by this file will already be running, unless you specifically shut them down or killed them.
I would bet that there are other distros that have similar features, but maybe in different locations.
-
January 23rd, 2001, 10:44 AM
#5
thanks for the promt answer, danns. i`ll follow your adviceand wait for the next shutdown then.
-
January 24th, 2001, 10:12 AM
#6
thanks a lot danns, i`ve executed the rc.local script, because it haven`t contained anything else besides my newly set instructions.
i find it a miracle to learn such a nice os, thanks a lot.
i`ve also added a cat into the `motd`, and i`m working on a script that cats the time onto the `issue` file, but i want that to be dinamically `catted`, if you know what i mean. i want it to print the actual time, not just the time that it was when i logged out.
anyways, thanks a lot.
[This message has been edited by hictio (edited 01-24-2001).]
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|