LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 12-21-2014, 02:42 PM   #1
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,959

Rep: Reputation: 271Reputation: 271Reputation: 271
The scripts in /etc/rc.d


I only just noticed that I have competing scripts in /etc/rc.d, some with the suffix .new. It seems the rc.*.new scripts were introduced some time ago; I haven't used them. What's the deal? Should I delete the old scripts and rename the rc.*.new to rc.* ?
 
Old 12-21-2014, 02:46 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,339

Rep: Reputation: Disabled
.new files are created when you upgrade a package with upgradepkg and the new package provides an updated config file or startup script. You should compare the existing file to the .new file and decide whether the old file should be updated or replaced, of if the .new file should simply be deleted.

slackpkg may also create .new files, but only after asking you whether you would like it to do so or not.
 
Old 12-21-2014, 03:52 PM   #3
maciuszek
Member
 
Registered: Nov 2010
Location: Toronto, Ontario
Distribution: Slackware + FreeBSD
Posts: 165

Rep: Reputation: 40
Just to clarify they aren't created by upgradepkg or slackpkg . A .new is normally packaged..considered for anything likely to be configured by the user and will only exist if there is already a file of the same name exsisting on the live system (hence upgrading.. Upgradepkg). This is by standard determined and established in the doinst.sh.

I.e.: http://mirrors.slackware.com/slackwa...ager/doinst.sh

Slackpkg can brutely handle these with the new-config CLP but I would recommend finding them and handling them manually with locate -r \.new$ (there's probably something wrong with that regex but you get the gist). And of course you'll want to have an update slocate db.
 
Old 12-23-2014, 02:19 AM   #4
rworkman
Slackware Contributor
 
Registered: Oct 2004
Location: Tuscaloosa, Alabama (USA)
Distribution: Slackware
Posts: 2,559

Rep: Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351Reputation: 1351
Use diff to compare the original and the new ones; it's often that those have necessary changes. If the only upgrades you've done have been for /patches then it's likely that there aren't any real differences, but check to be sure.

Something like this should help:
Code:
diff -u /etc/rc.d/rc.S /etc/rc.d/rc.S.new
 
  


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
[SOLVED] Why don't intltool perl scripts execute as perl scripts? RandomTroll Linux - Software 19 01-24-2014 03:37 PM
LXer: Python Scripts as a Replacement for Bash Utility Scripts LXer Syndicated Linux News 1 01-17-2013 08:08 AM
Calling expect scripts from other expect scripts sevapopov Linux - Software 3 04-03-2008 09:33 PM
VPN: Debian Scripts -> Mandriva 2006 Scripts Undefined Mandriva 0 11-30-2005 12:10 PM
Need help running scripts from scripts sdouble Linux - Newbie 3 05-31-2004 12:56 PM

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

All times are GMT -5. The time now is 04:22 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