SlackwareThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541
Rep:
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.