Slackware This Forum is for the discussion of Slackware Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
10-09-2012, 08:44 AM
|
#1
|
|
Member
Registered: Dec 2011
Location: Columbus, OH
Distribution: Slackware 13.37
Posts: 33
Rep:
|
init script type
I have a question about the init script type for slackware 13.37, What type is the init scripts in slackware 13.37?
Part of it looks like BSD and another part looks like System V.
I also noticed that the parameters to run a init script is:
Code:
{start | stop | restart | graceful | graceful-stop}
But there is no 'status' parameter and what dose 'graceful' and 'graceful-stop' mean as perameters?
Last edited by charging-ibis; 10-09-2012 at 09:06 AM.
|
|
|
|
10-09-2012, 09:02 AM
|
#2
|
|
Senior Member
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 2,445
|
Are you talking about the scripts in /etc/init.d?
If so, there're
Code:
fubar-trona-/etc/rc.d/init.d: file *
README.functions: ASCII English text
collectl: POSIX shell script, ASCII text executable
collectl-debian: POSIX shell script, ASCII text executable
collectl-generic: POSIX shell script, ASCII text executable
collectl-suse: POSIX shell script, ASCII text executable
functions: ASCII English text
and the README.functions states:
Code:
fubar-trona-/etc/rc.d/init.d: cat README.functions
If you're reading this in /etc/init.d/, Slackware's real init directory is
/etc/rc.d/. Maybe you already knew this, but it never hurts to say. :-)
This script was taken from Fedora (and is presumably licensed under the GPL).
While I don't see Slackware init scripts making much use of it (but use it
if you wish), some third party init scripts (such as for commercial software
designed to run on Red Hat based systems) expect this script and use it in
their own init scripts, so it's a good idea to make it available here.
These functions are provided solely for commercial (or other) software that
expects to find "Red Hat-isms". I wouldn't use them to write new init
scripts (personally), but if you've had experience with them in the past
and like them, by all means feel free.
It's planned to continue support for them.
Hope this helps some.
|
|
|
1 members found this post helpful.
|
10-09-2012, 09:14 AM
|
#3
|
|
Senior Member
Registered: May 2008
Posts: 2,844
|
Slackware's approach to init-scripts is pretty much a hybrid between the bsd and sysv styles (IMO taking the best parts of both)
|
|
|
|
10-09-2012, 09:44 AM
|
#4
|
|
Senior Member
Registered: Nov 2008
Location: Paris, France
Distribution: Slackware-14.0 on a Lenovo T61 6457-4XG
Posts: 2,788
|
Quote:
Originally Posted by charging-ibis
I have a question about the init script type for slackware 13.37, What type is the init scripts in slackware 13.37?
Part of it looks like BSD and another part looks like System V.
I also noticed that the parameters to run a init script is:
Code:
{start | stop | restart | graceful | graceful-stop}
But there is no 'status' parameter and what dose 'graceful' and 'graceful-stop' mean as parameters?
|
I suppose you are speaking about the files in /etc/rc.d
To answer your first question, which seems me to be rather rhetorical, they are of Slackware type
If you look at some you will see that the main ones (those which end in one digit or letter after the dot) are the "real" init scripts, whose purpose is to change the state of the system (its run level) as a whole. Others are scripts used to start or stop a particular service or set of services and can be run in the course of a change in the run level or independently.
As fot the parameters, they are not the same in every script. To understand why, just look at some of them at random.
Last edited by Didier Spaier; 10-09-2012 at 09:46 AM.
|
|
|
|
10-09-2012, 03:22 PM
|
#5
|
|
Member
Registered: Dec 2011
Location: Columbus, OH
Distribution: Slackware 13.37
Posts: 33
Original Poster
Rep:
|
Quote:
Originally Posted by tronayne
Are you talking about the scripts in /etc/init.d?
If so, there're
Code:
fubar-trona-/etc/rc.d/init.d: file *
README.functions: ASCII English text
collectl: POSIX shell script, ASCII text executable
collectl-debian: POSIX shell script, ASCII text executable
collectl-generic: POSIX shell script, ASCII text executable
collectl-suse: POSIX shell script, ASCII text executable
functions: ASCII English text
and the README.functions states:
Code:
fubar-trona-/etc/rc.d/init.d: cat README.functions
If you're reading this in /etc/init.d/, Slackware's real init directory is
/etc/rc.d/. Maybe you already knew this, but it never hurts to say. :-)
This script was taken from Fedora (and is presumably licensed under the GPL).
While I don't see Slackware init scripts making much use of it (but use it
if you wish), some third party init scripts (such as for commercial software
designed to run on Red Hat based systems) expect this script and use it in
their own init scripts, so it's a good idea to make it available here.
These functions are provided solely for commercial (or other) software that
expects to find "Red Hat-isms". I wouldn't use them to write new init
scripts (personally), but if you've had experience with them in the past
and like them, by all means feel free.
It's planned to continue support for them.
Hope this helps some.
|
-> Hey thanks for the tip.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 01:28 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|