Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
06-19-2004, 07:30 AM
|
#1
|
Member
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141
Rep:
|
how to add this to startup?
Hi,
i am trying the single sign on for couple of weeks.
the problem is that every time the system boots up the redhat9.0 system becomes a little late then the windows 2000 domain controller.
so i have to manually run this command to get it in sunc with the domain controller.
as i am using samba 3.0.4 this is the command i use
net time set -S 10.10.1.125
this is the IP of the computer which is the domain controller.
so all i wan is that this command should run at the end of every boot up process.
can any one tell me how to make it a startup shell script and where to put the file?
|
|
|
06-19-2004, 07:37 AM
|
#2
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
you can put it in /etc/rc.local
OR
create a /etc/cron.daily/0ntpdate
/usr/sbin/ntpdate -u clock.redhat.com ... although this clock may not match your Win2K clocks.
Last edited by ppuru; 06-19-2004 at 07:40 AM.
|
|
|
06-19-2004, 07:47 AM
|
#3
|
Member
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141
Original Poster
Rep:
|
dont have /etc/rc.local
i dont have /etc/rc.local in my system
i have
rc
rc0.d
rc1.d
rc2.d
rc3.d
rc4.d
rc5.d
rc6.d
rc.d
rc.local
rc.sysinit
rc.local is not a directory it says.
|
|
|
06-19-2004, 07:50 AM
|
#4
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
Yes, rc.local is a file
edit /etc/rc.local and add your command
net time ...
|
|
|
06-19-2004, 08:37 AM
|
#5
|
Member
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141
Original Poster
Rep:
|
ok what about running the script at a particular time
thanks it worked
now suppose there is some other script i wan to start up at a particular run level.
like suppose this very script.
how do i do that?
|
|
|
06-20-2004, 12:54 AM
|
#6
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
#cd /etc/rcn.d //where n is the init level of your choice
#cp <your script> S99scriptname
#chmod 755 S99scriptname
|
|
|
06-21-2004, 07:56 AM
|
#7
|
Member
Registered: Apr 2004
Distribution: Linux Red Hat
Posts: 141
Original Poster
Rep:
|
but all of them are softlinks
Hi,
ok those directories /etc/rcn.d contains soft links.
where are they pointing to. do i also jhave to make a soft link.?
and what does s99 stand for?
|
|
|
06-21-2004, 10:59 AM
|
#8
|
Senior Member
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791
Rep:
|
Snnscriptname or Knnscriptname
S - startup script
K - stop / kill script
nn - to prioritize your script - (make it run after or before other scripts)
scriptname - name of the script you want to run
Last edited by ppuru; 06-21-2004 at 11:01 AM.
|
|
|
10-15-2005, 04:03 PM
|
#9
|
LQ Newbie
Registered: Sep 2004
Distribution: Slackware 12.0
Posts: 22
Rep:
|
I tried to place my vnc server in /etc/rc.local and nothing happened, the service did not start what can be the problem?? (I'm using SuSE 8.2 Pro)
|
|
|
All times are GMT -5. The time now is 12:41 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|