![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Executing sh files at System Startup | appleforme1415 | UNIX for Dummies Questions & Answers | 13 | 05-21-2007 01:18 AM |
| Executing set of sh files at system startup | appleforme1415 | SuSE | 1 | 05-15-2007 09:05 AM |
| stop a process to start at system startup | larsgk | SUN Solaris | 3 | 09-21-2006 10:31 AM |
| AIX 5.3: Start Service on System startup | dennis.kuehl | UNIX for Advanced & Expert Users | 1 | 07-25-2006 03:32 AM |
| System Startup Time | shoeb_syed | UNIX for Dummies Questions & Answers | 6 | 03-17-2006 01:56 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
How can I add my own service when system startup?
Hi All,
My OS is redhat 7.1. How can I start my own service (e.g. simple scripts) when the system is started? I found something like /etc/rc.d, /etc/rc.init ... But I have no idea on them, have anyone can help me? regards wilson |
|
||||
|
/etc/rc0.d is the area used when shutting down the server
/etc/rc2.d is the area used on bootup All you need to do, is to add you script in the /etc/rc2.d area. lets say you call the scripts S98start On bootup it will read your start and start whatever you are planning to run then to stop whatever you have started (if needed) you can then create another script called /etc/rc0.d/K98stop todo the reverse of S98start. i hope makes sense. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|