LinuxQuestions.org
Help answer threads with 0 replies.
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 04-11-2008, 09:20 AM   #1
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Rep: Reputation: 39
Question chkconfig being different on SuSE to other servers???


Hi All,
I've used several different types of servers in my time and have what i consider reasonable knowledge of writing my own start-up scripts and using them in conjunction with chkconfig. However since i recently been using a bit more of SLES 9 and 10, no matter what method i use to write the start-up section for the script, SuSE just seems to put any old start and stop numbers on the script (Sxxscript) and doesn't put the links into the correct places either. Now this is happening on more than one server. I've tried it the simple way of using...
# chkconfig: 345 60 10

and doing a chkconfig script on it did..
rc3.d/S01script
rc3.d/K21script
rc5.d/S01script
rc5.d/K21script
and missed out run level 4 completely, plus didn't put any Kxxscript into runlevels 1 and 6.

So i tried another method of:-
### BEGIN INIT INFO
# Provides: script
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the script
### END INIT INFO

this also doesn't do what i've told it to....however

### BEGIN INIT INFO
# Provides: script
# Required-Start: network
# Required-Stop: network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Description: Start the script
### END INIT INFO

At least the above method gets the start-up positions in a reasonable place and not at S01script, but it doesn't put Kxxscript into the runlevels 0126 like i would expect and i'm almost certain normally happens. But the point is all the over methods previously on different distos have worked fine, why is it so weird in SLES.

Cheers for any thing :-)

Last edited by helptonewbie; 04-11-2008 at 09:30 AM.
 
Old 04-12-2008, 04:13 AM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 4,052

Rep: Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881Reputation: 881
Quote:
But the point is all the over methods previously on different distos have worked fine, why is it so weird in SLES.
...because SuSE start up is different. A bit of history, when SuSE started up, they were a Slackware distributor; when they decided that they wanted to do their own distro, they quite liked the start up arrangement of the BSDs, so their arrangement is a hybrid of the two.

Of course, this attempt to cherry pick the best of two different systems to have their cake and eat it; what this ignores is that it confuses people.

If you start stuff up via yast, that works; if you don't, read the documentation, otherwise you will find you are fighting against yast, which doesn't always like people doing things behind its back.
 
Old 04-14-2008, 02:46 AM   #3
helptonewbie
Member
 
Registered: Aug 2006
Location: England Somewhere
Distribution: Mandriva, PCLinuxOS, Karoshi, Suse, Redhat, Ubuntu
Posts: 518

Original Poster
Rep: Reputation: 39
Thanks for the reply very useful information, and i feel they've completely failed..but maybe thats just because it would be nice if it wasn't so different.
 
  


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
Why do I get "bash: chkconfig: command not found" when I try to run chkconfig? non-thrash Fedora 10 05-20-2010 01:31 PM
NTP time servers with Suse 10.2 sadiqdm SUSE / openSUSE 0 03-18-2007 12:35 AM
Getting Networking Up Suse 8.0, then servers mastahnke Linux - Networking 1 07-03-2002 04:40 PM
Suse 8.0 Network and servers mastahnke Linux - Software 2 07-01-2002 09:32 PM


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