LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 01-08-2009, 12:14 PM   #1
emmitt1219
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Rep: Reputation: 0
Custom Task During Bootup


We are running RHEL 5.2 on vmware. What we are trying to do is to have a custom task that gets executed during the boot process. This custom task will -

1) make partition(s) on a new slave drive (hd space allocated manually outside of the original image) - fdisk would work (as is part of distro)
2) make filesystem - mkfs.ext3 on target partition(s)
3) create directory and allow access - like chmod 777
4) mount target partition
5) copy certain files/directories onto the target partition from a separate source partition.

I am thinking about putting a script in rc3.d to achieve these tasks. However, it seems to me that most tasks in executed by the init process during boot time are programs/services whereas I am just looking to execute a script during the boot process. I am wondering if there is another place where I can place my script or the init program is where I should have it.

Thanks in advance.
 
Old 01-08-2009, 12:15 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
/etc/rc.local
 
Old 01-08-2009, 12:36 PM   #3
emmitt1219
LQ Newbie
 
Registered: Aug 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Hi repo. That makes sense. Then my script gets executed every time the box boots up or when it boots into a different runlevel. Let me give that a try. Thank you for your help!
 
  


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
Task bar no longer shows task Richard Rahl Linux - Newbie 3 04-12-2010 09:39 AM
Creating custom headers to match a custom kernel utanja Debian 2 06-08-2007 03:15 PM
Custom kernel image on custom slack build using CUSS nykey Slackware 2 07-15-2006 03:05 AM
gnome fails to load on login after bootup - unless bootup first in win xp doubletruncation Fedora 6 12-07-2005 08:32 AM
custom geforce video card--custom module? bandofmercy Linux - Hardware 3 10-14-2004 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:56 AM.

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