About the file /etc/rc.d/rc.local | Unix Linux Forums | UNIX for Dummies Questions & Answers

  Go Back    


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

About the file /etc/rc.d/rc.local

UNIX for Dummies Questions & Answers


Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 11-14-2009
cqlouis cqlouis is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 16 April 2013, 2:57 AM EDT
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
About the file /etc/rc.d/rc.local

My OS is RHEL5.0.


Code:
 
[root@node01 ~]# cat /etc/rc.d/rc.local
#!/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.
touch /var/lock/subsys/local

I appended echo "this is just for test " to file /etc/rc.d/rc.local,
I guest when I reboot my system, this is just for test will be displayed in the monitor.
But that didn't work.
Why?
Sponsored Links
    #2  
Old 11-14-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
 
Join Date: Sep 2000
Last Activity: 15 April 2014, 10:23 PM EDT
Location: Asia pacific region
Posts: 12,898
Thanks: 492
Thanked 845 Times in 381 Posts
Please post the rc.local file where you added the code. Thanks.
Sponsored Links
    #3  
Old 11-14-2009
cqlouis cqlouis is offline
Registered User
 
Join Date: Oct 2009
Last Activity: 16 April 2013, 2:57 AM EDT
Posts: 29
Thanks: 0
Thanked 0 Times in 0 Posts
the file that I appended is:


Code:
[root@node01 xinetd.d]# cat /etc/rc.d/rc.local
#!/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.

touch /var/lock/subsys/local

echo "this is just for test"

    #4  
Old 11-14-2009
mihaylov23's Avatar
mihaylov23 mihaylov23 is offline
Registered User
 
Join Date: Nov 2009
Last Activity: 22 December 2009, 4:12 PM EST
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Are you booting into Xorg ?
try tty1 it should display the string.
i mean console 1, alt+ctrl+f1

Last edited by mihaylov23; 11-14-2009 at 04:42 AM..
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Copy a file from a dvd to the local AIX file system anurag1510 UNIX for Dummies Questions & Answers 1 08-25-2009 05:22 PM
Local max values of a file jemm Shell Programming and Scripting 1 03-02-2009 10:13 AM
file size comparision local file and remote file dba.admin2008 Shell Programming and Scripting 4 11-13-2008 04:57 PM
Calculate the time difference between a local file and a remote file. meetmano143 Shell Programming and Scripting 1 11-04-2008 01:59 PM
how to find whether a file is local or remote file? jackfds UNIX for Dummies Questions & Answers 3 07-10-2007 08:36 AM



All times are GMT -4. The time now is 12:13 AM.