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 07-26-2007, 04:05 PM   #1
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

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.

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

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
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.
 
  


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
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

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

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