LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-15-2018, 10:40 PM   #1
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Rep: Reputation: 253Reputation: 253Reputation: 253
Why is /sbin/initscript.sample not /etc/initscript.sample ?


initscript.sample is provided by the sysvinti package.

The script's comment suggests that it should be placed in /etc/ :

Code:
#		<snip>. By default this script is installed
#		as /etc/initscript.sample, so to enable it you must
#		rename this script first to /etc/initscript. <snip>
However, the package SlackBuild does it differently:

Code:
cp initscript.sample $PKG/sbin/initscript.sample
https://mirrors.slackware.com/slackw...nit.SlackBuild

Why? What's the rationale? I seldom (read 'never') saw /etc and /sbin being on different partitions.
 
Old 06-16-2018, 01:31 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Slackware's init is a BSD-style init, meaning that it is a series of scripts.

The SysVinit package provides compatibility with SysV. I suspect that the modifications to the SysVinit package have been made so that SysVinit can provide that compatibility without intruding.
 
Old 06-16-2018, 01:50 AM   #3
Lockywolf
Member
 
Registered: Jul 2007
Posts: 683

Original Poster
Rep: Reputation: 253Reputation: 253Reputation: 253
I know. I'm playing with the Slackware's sysv emulation at the moment, because I had some trouble making VMware run.
For me it doesn't make much sense to ship a script prototype in /sbin/. Probably either ship it in the default location, or just throw it away completely, as with other unused parts of the sysv.
 
Old 06-16-2018, 05:06 AM   #4
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,910

Rep: Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026Reputation: 5026
init does look for it under /etc/
Code:
$ strings /sbin/init | grep initscript
/etc/initscript
OP. is correct, there's definitely an inconsistency here. Whether the sample should be moved to /etc, or sysvinit patched to look for it in /sbin/ I guess is a matter of preference.

Maybe just putting it in /usr/doc/sysvinit* (it is a sample after all) and leaving those who want to install it to do so manually is the right approach.

Last edited by GazL; 06-16-2018 at 05:57 AM.
 
1 members found this post helpful.
Old 06-16-2018, 06:47 AM   #5
Darth Vader
Senior Member
 
Registered: May 2008
Location: Romania
Distribution: DARKSTAR Linux 2008.1
Posts: 2,727

Rep: Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247Reputation: 1247
Quote:
Originally Posted by Lockywolf View Post
Why? What's the rationale?
This is a confidential information, not accessible for your access level.
 
  


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] Slackware 14.0 and ulimits and /sbin/initscript waynelloydsmith Slackware - Installation 2 10-29-2012 07:12 AM
Suse10.2 : /etc/initscript : line 106 : /sbin/mingetty Input/Output error on reboot chelsea SUSE / openSUSE 5 05-24-2008 01:17 PM
Top initscript shahrokhnikou Programming 2 10-25-2005 08:54 AM
Initscript shahrokhnikou Programming 8 10-24-2005 03:23 PM
Initscript shahrokhnikou Linux - General 3 10-24-2005 07:40 AM

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

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