LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-12-2010, 08:49 PM   #1
thetzawko
LQ Newbie
 
Registered: Mar 2005
Posts: 17

Rep: Reputation: 0
Suse Start up script problem


Hi every

I want to add some start up script to suse server.

I used to red hat.

I cannot find rc.local script file on Suse.

Where do I put my startup scripts?

I put scripts in boot.local but it doesn't work. My scripts didn't run.

I chage my script files permission to 755 and i put those in rd.3 and rc.5 directories. But they didn't run on system startup.

pls help me.
 
Old 01-13-2010, 12:21 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

You can put your script in /etc/init.d and create a symlink in rc3.d (or rc5.d if it runs only on X):
Code:
ln -s /etc/init.d/script.sh /etc/init.d/rc3.d/SXXscript
Note that XX is a number specifying the order that the script will be executed. If XX=99 it will be executed after all the other scripts in runlevel 3. You can also use another symlink using K instead of S in the above command, to stop your script at shutdown.

Regards
 
  


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
writing auto start script for static routes in suse linux10.3 with shorewall 3.0 nerdnero Linux - Newbie 5 06-18-2010 05:25 PM
How to add Beagled to Suse 10.0 start script Balarabay1 Programming 5 08-07-2006 01:51 PM
adsl-start problem in shell-script frgtn Linux - Networking 2 04-16-2005 03:29 PM
problem with adsl-start and /etc/ppp/ip-up-script oetzi Linux - Networking 2 05-27-2004 03:06 AM
KDE auto start script problem Coolrunr Programming 2 09-08-2003 09:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:59 PM.

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