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


  Search this Thread
Old 07-26-2007, 04:05 PM   #1
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 568

Rep: Reputation: 38
Slack equivalent of status, daemon and killproc from RH init.d/functions

I'm trying to install Slimserver, which only gives Debian and RedHat versions.

Are there any equivalent functions already available in Slack to replace the status(), daemon() and killproc() routines found in RH's /etc/rc.d/init.d/functions.

Previously, I've only had to work around where the scripts are loaded, and cope with echo_success() and echo_failure(), which were easy to handle.

Old 07-26-2007, 04:31 PM   #2
LQ Guru
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
The short answer is no. There is no global service to add/remove and control daemons under Slackware. Each one has it's own script under /etc/rc.d/, and the available options are completely dependent on that script. The only reason that the scripts aren't completely different for each daemon is simply because the Slackware maintainers strive for quality and a consistent experience.

Adding or removing a daemon to your bootup is accomplished by setting the executable bit on the script accordingly. There is a ncurses frontend for this in pkgtool, but really all it does is give you a list of the startup scripts and "chmod +x" whatever ones you check off; not really rocket science.

All that being said, if you want to add a daemon to your Slackware installation that does not have a pre-existing Slackware package/configuration, you are going to need to write your own boot script for it. I am not aware of any template, but you can easily take one of the more simplistic scripts (like rc.ip_forward) and adapt that.

Alternately you may be able to simply add it to rc.local, but obviously that is not going to be nearly as robust, and depending on your needs might not be appropriate.


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
Need help finding linux equivalent to windows API functions: SHBrowseForFolder....etc mike1 Programming 2 11-11-2004 06:48 AM
/etc/rc.d/init.d/functions? ccajina Slackware 4 11-26-2003 03:05 PM
Daemon Tools Equivalent for Linux ? gendreau Linux - Software 1 06-08-2003 02:51 PM
Linux Equivalent for Windows API functions saravanan1979 Linux - General 10 06-18-2002 06:39 AM
Daemon started but NOT running with lpc status??? Ruth Linux - General 1 03-12-2001 09:58 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 06:26 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration