Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 11-04-2009, 12:34 PM   #1
Registered: Jun 2005
Location: Fargo, North Dakota
Distribution: Debian Testing
Posts: 268

Rep: Reputation: 42
Init/Boot Script Dilemma

I had a problem with my system (Debian; testing/unstable branch), the nature of which is unimportant. The problem is init/boot script related. It seems that some services (udev and lvm2) need to be started earlier in the boot sequence than the default setup of the packages.

My temporary solution (kludge) is to put an appropriately-named script in the /etc/rcS.d/ directory that starts these two services earlier than the default setup. Everything seems to be working almost-perfectly, now, but I want to have a less sloppy fix for the problem.

I've weighed the options, and they all seem to balance out for me.... none seems better than the others, and I would like some input/feedback in case I missed something.

The options:

1: Keep the kludge, as is.
+ it's easy to see that there is a kludge, and I can easily change the script in the future if there are any changes in the package names (like for example, when lvm became lvm2)
- I've got two services starting when they have already been started.... this is unnecessary.

2: Rename the appropriate files in /etc/rcS.d/ such that the problem services will start earlier in the boot process, and get rid on my kludge.
+ it tidy's up the /etc/rcS.d directory, there is no obvious kludge in there, it more properly complies with the sysV init standards.
- It will not be apparent to anyone that there has been a renaming of the files in /etc/rcS.d/ and some future upgrade could booger things up, and it will be more difficult to find.

3: Use some other init/boot structure other than the sysV structure
+ I know that this problem was a direct result of the sysV structure, some other boot/init structure could work better.
- I like the sysV way of doing these things, I would need to learn to use another init structure and deal with the learning curve involved.

Like I said... the pros and cons seem to be pretty well balanced to me, and no one solution is any better or worse than any other solution.

Anyone out there have any opinion about this?
Old 11-04-2009, 12:40 PM   #2
LQ Guru
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 272Reputation: 272Reputation: 272
I would opt for #2 if it's a production system, since you're familiar with it and it's the "proper" way of dealing with it. If it's a development system for a future production system, I would go to option #3 because most distros are moving to event based init systems that start things up in a logical order. For example, it won't start the samba or ftp daemons until after networking is up. If networking fails for whatever reason, it won't bother starting samba or ftpd.


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
disable echoing password in etc/init.d encryption boot script tatanna Linux - Security 3 11-13-2008 06:03 AM
Is a script, run at boot time from init.d, run with root authority? tmbrwolf53 Linux - Server 2 03-31-2007 09:15 PM
Boot dilemma zatka Linux - Software 2 05-17-2005 09:51 AM
script help?? want an option for init 3 or 4 on boot up?? trey85stang Slackware 1 01-04-2004 11:20 PM
Boot disk dilemma x.x x34y Linux - Newbie 3 05-02-2002 05:12 PM > Forums > Linux Forums > Linux - General

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration