LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 08-16-2004, 07:44 AM   #1
nukeu666
Member
 
Registered: Mar 2004
Location: India
Distribution: MDK, Fedora, Debian Unstable (current)
Posts: 80

Rep: Reputation: 15
how do i add my script in init


i want to add a quotacheck script when my server bootsup
its a redhat machine
its recommended to run the script in init just after the drives are mounted on TLDP
i have the script ready...but i dont know where to copy it and where to add the entry for it...
thnx
 
Old 08-16-2004, 07:56 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,374

Rep: Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962Reputation: 1962
you can either just stick the script into the end of the local service script, normally /etc/rc.local but if you did want to have it as a proper "service" after the mount is done, then take a simple service file in the /etc/init.d directory and modify where appropriate to make the start routine execute the script. once that works, create a symlink from that file to the /etc/rc?.d directorys, using a name of S??servicename where ss is the order / priority you wish.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
can't get my init script working nukeu666 Linux - Newbie 4 12-16-2004 11:12 AM
add a static route in Network init files Ghitza Linux - Networking 1 11-19-2004 05:26 AM
INIT script hangs up? quixy Debian 1 02-08-2004 11:58 AM
How to add something in init script Ypkis Linux - Newbie 5 10-12-2003 06:35 AM
could use some help with my init.d script.... BrianK Linux - General 3 10-31-2002 07:21 PM


All times are GMT -5. The time now is 04:19 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration