LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 08-11-2003, 08:09 PM   #1
BajaNick
Senior Member
 
Registered: Jul 2003
Location: So. Cal.
Distribution: Slack 11
Posts: 1,737

Rep: Reputation: 46
How do i make scripts run at bootup and shutdown?


I just wrote my first scripts and i would like to know how to make them run at bootup or shutdown. Thanks
 
Old 08-11-2003, 08:21 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,469

Rep: Reputation: 154Reputation: 154
In SuSE the place to put your boot scripts are:
/etc/init.d/boot.local

and the place to put your shutdown scripts are:
/etc/init.d/halt.local

Red Hat probably gives these files slightly different names just to be ornery.
 
Old 08-11-2003, 08:37 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,953
Blog Entries: 54

Rep: Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733Reputation: 2733
In RH, place executable scripts in /etc/rc.d/init.d. Then make symlinks according to runlevel and place in startup/shutdown sequence in /etc/rc.d/rc(1-5).d and /etc/rc.d/rc(0,6).d for shutdown/reboot or see "man chkconfig" on how to automate that.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make ppp scripts run as user Grunty Slackware 6 09-13-2005 08:54 PM
shutdown scripts? mushmaster Linux - Software 5 02-15-2005 06:23 PM
adding bootsplash scripts to bootup? microsoft/linux Debian 7 12-17-2004 09:44 AM
Want to run a few scripts before KDE shutdown, where can I add them. Brian1 Linux - Software 6 06-16-2004 06:36 PM
how to make/run startup scripts/commands ViN86 Slackware 3 04-24-2004 10:02 AM


All times are GMT -5. The time now is 01:57 AM.

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