LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-23-2016, 08:17 AM   #1
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Rep: Reputation: 68
Could we have an rc.smartd script, to stop upgrades from disabling smartd please?


Hi all. At the moment smartd is started from rc.M - by uncommenting the necessary lines. The problem with this is that every Slackware upgrade tends to disable smartd when it overwrites rc.M - which risks leaving it disabled if one doesn't remember to re-enable it. I find this quite important, as smartd is essential in warning of hdd failure - especially on servers.

I understand why it is commented out by default - but I was thinking that if the startup scripts would rely on starting it through a minimal rc.smartd script instead - it would mean that once enabled on a system (by making it executable), it would stay so throughout upgrade cycles - and not risk the situation where it has been disabled and left so by mistake. What do the others think?
 
Old 03-23-2016, 08:20 AM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Slackware's upgrade process does not overwrite your rc.M file. It is you who does this, consciously.
The upgrade will install a "rc.M.new" file and you need to inspect the differences between the currently installed and the new version before you decide to replace the original with the new file.
 
Old 03-23-2016, 08:20 AM   #3
WiseDraco
Member
 
Registered: Nov 2006
Location: Europe,Latvia,Riga
Distribution: slackware,slax, OS X, exMandriva
Posts: 591

Rep: Reputation: 73
agree.
 
Old 03-23-2016, 10:42 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,896

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
The logic behind what gets a separate rc.* and what doesn't on Slackware is a little hard to fathom. IMO there's a far stronger argument for having a rc.smartd than there is for the existence of rc.loop or rc.cpufreq which don't even have a daemon component to manage.

Personally, I think his suggestion has merit and that it's probably safer to not require users to customise rc.M (after all, isn't that what rc.local is for?)


If you don't get any joy on your suggestion, I'd recommend you use rc.local to start smartd rather than make changes to rc.M.
 
6 members found this post helpful.
Old 03-23-2016, 12:30 PM   #5
xj25vm
Member
 
Registered: Jun 2008
Posts: 393

Original Poster
Rep: Reputation: 68
@Alien Bob - that is true - but I don't seem to have stumbled over any other setting which requires customising one of the core startup scripts. To me it would seem to fit in with the philosophy used by Slackware elsewhere to not require users to modify the core startup scripts. But I can live with it if it isn't implemented :-)

@GazL - thank's for the suggestion - I think I will do so in the meanwhile. I always liked the idea that all my handywork is either in rc.local or in custom rc.* files which are not part of the core system :-)

Edit: There is also the time-saving and efficiency factor. The clearer the demarcation between settings and changes made by the user after install, and core/default system settings and scripts, the easier and faster it is to do a system upgrade. And less likely to go wrong.

Last edited by xj25vm; 03-23-2016 at 12:36 PM.
 
1 members found this post helpful.
Old 03-23-2016, 12:56 PM   #6
brobr
Member
 
Registered: Oct 2003
Location: uk
Distribution: Slackware
Posts: 973

Rep: Reputation: 238Reputation: 238Reputation: 238
Quote:
Originally Posted by GazL View Post
The logic behind what gets a separate rc.* and what doesn't on Slackware is a little hard to fathom..... it's probably safer to not require users to customise rc.M (after all, isn't that what rc.local is for?)...
Yes, but does this not depend on when an action is needed? For example /etc/rc.d/rc.4 also needs editing in case one wants to use the Slim login manager and don't want to run in an error message (when no gdm, kdm or xdm are present)...
 
Old 03-23-2016, 01:45 PM   #7
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,896

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Quote:
Originally Posted by brobr View Post
Yes, but does this not depend on when an action is needed? For example /etc/rc.d/rc.4 also needs editing in case one wants to use the Slim login manager and don't want to run in an error message (when no gdm, kdm or xdm are present)...
I've always been an advocate of the rc.conf/rc.conf.local approach used by the *BSDs for configuring rc files.
 
1 members found this post helpful.
  


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
smartd bajpaipuneet Linux - Server 3 03-09-2007 12:24 PM
Smartd Atulmishra Linux - Software 10 02-20-2007 09:33 PM
Smartd Error Message generated by Smartd Daemon Proces rexjenny Red Hat 1 11-29-2006 07:12 PM
boot up stop at smartd peterpan0307 Fedora 2 09-29-2006 05:28 AM
what's the smartd ? soundbarrier Linux - General 16 01-28-2005 04:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:58 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
Open Source Consulting | Domain Registration