LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-07-2008, 10:06 PM   #1
invent
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Rep: Reputation: 0
script when server startup


Hi all,

I has one script which i would like to run this script when server startup. But i don't know How to run its?
Please,sucess me.

OS: Redhat AS4 update1
 
Old 01-08-2008, 12:31 AM   #2
thedonkdonk
Member
 
Registered: Oct 2005
Location: San Jose, CA
Distribution: Fedora, RHEL, CentOS
Posts: 136

Rep: Reputation: 16
Copy the file to the /etc/init.d/ directory and make a symlink to that file in the /etc/rc5.d/ and /etc/rc3.d/ directories.
 
Old 01-08-2008, 04:05 AM   #3
invent
LQ Newbie
 
Registered: Nov 2007
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you very much.
 
Old 01-08-2008, 06:26 PM   #4
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043Reputation: 1043
Uhm it is distro dependent and not that simple, just symlinking doesn't work. Redhat used to have a command for that (forgot what it was), Debian does it with update-rc.d. You have to specify the base name, run levels and load priority.

jlinkels
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
mysql.server startup script is not cooperating. vmlinuz.gz Linux - Software 14 04-14-2006 09:41 PM
'cannot stat' script in /etc/rc.d/, try to run script at startup quintan Linux - Software 1 11-21-2005 02:53 AM
How to call a script from a system startup script? jonatito Linux - Newbie 7 11-11-2005 09:40 PM
wi-fi startup script Nodren Linux - Wireless Networking 6 05-09-2005 08:56 AM
problem with mysql startup script on server BeetleBailey Programming 2 07-22-2004 04:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration