LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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-30-2004, 07:24 AM   #1
Noems
LQ Newbie
 
Registered: May 2004
Posts: 20

Rep: Reputation: 0
after boot scripts


Hi!

i'm using SuSE 8.1 and i would like to know if there's a way to create a script that is activated right after boot?

i tried to do it but the script is activated during the process of booting.

can someone help me please?

thnx
 
Old 08-30-2004, 08:10 AM   #2
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
if you want it at the end of booting put it at the end of rc.local. if you want it at the beginning of login, then add it to /etc/profile.
 
Old 08-30-2004, 09:36 AM   #3
Noems
LQ Newbie
 
Registered: May 2004
Posts: 20

Original Poster
Rep: Reputation: 0
Sorry the /etc/rc.local does not exists..

is it /etc/init.d/boot.local?
 
Old 08-30-2004, 10:14 AM   #4
whansard
Senior Member
 
Registered: Dec 2002
Location: Mosquitoville
Distribution: RH 6.2, Gen2, Knoppix,arch, bodhi, studio, suse, mint
Posts: 3,187

Rep: Reputation: 53
Quote:
Originally posted by Noems
Sorry the /etc/rc.local does not exists..

is it /etc/init.d/boot.local?
probably
 
Old 09-04-2004, 04:01 AM   #5
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
No actually IIRC boot.local is for mounting of local filesystems.

I can't say for sure (until I get home and check) but I think all you have to do is create the rc.local file make it executable and then add your commands to it. If not then look at the /etc/rc.d/skeleton file. That is a template file (LSB compliant) for adding your own initialization scripts to the bootup process.

Last edited by /bin/bash; 09-04-2004 at 04:05 AM.
 
Old 09-04-2004, 10:51 AM   #6
mikshaw
LQ Addict
 
Registered: Dec 2003
Location: Maine, USA
Distribution: Slackware/SuSE/DSL
Posts: 1,320

Rep: Reputation: 45
/etc/init.d/boot.local
"# Here you should add things, that should happen directly after booting
# before we're going to the first run level."
 
Old 09-05-2004, 11:17 AM   #7
bradbury02
LQ Newbie
 
Registered: Sep 2004
Posts: 3

Rep: Reputation: 0
I've got a related question. I launched a script from /etc/profile and the script enters an infinite loop and never returns. I can't figure out how to kill the script so that the login can finish and so I can go in and fix the script. Is there a way to boot and bypass /etc/profile ? or how can I terminate the script that's running?
 
Old 09-10-2004, 06:10 AM   #8
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
Quote:
/etc/init.d/boot.local
"# Here you should add things, that should happen directly after booting
# before we're going to the first run level."
See, thats what happens when I post from a windows computer here at work.

bradbury02
When you get to your lilo boot prompt type this:
linux single
or
linux 1
 
Old 09-11-2004, 12:34 AM   #9
/bin/bash
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Mandrake Slackware-current QNX4.25
Posts: 1,802

Rep: Reputation: 47
FYI I was thinking of boot.localfs file:
Code:
# Provides:          boot.localfs
# Required-Start:    boot.rootfsck
# X-UnitedLinux-Should-Start: boot.ibmsis boot.md boot.lvm dasd_devfs_compat boot.scsidev
# Required-Stop:
# Default-Start:     B
# Default-Stop:
# Description:       check and mount local filesystems except /
Sorry about 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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
running scripts at boot... thedp SUSE / openSUSE 2 10-17-2005 09:21 AM
running scripts at boot viniosity Ubuntu 3 07-19-2005 09:52 PM
using boot scripts Noems Linux - Newbie 2 05-25-2004 08:16 AM
boot scripts doing nothing raven Linux - Software 3 04-19-2002 12:58 PM
boot scripts gluon Linux - General 4 11-21-2001 06:47 PM

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

All times are GMT -5. The time now is 06:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration