LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Slack equivalent of status, daemon and killproc from RH init.d/functions (https://www.linuxquestions.org/questions/slackware-14/slack-equivalent-of-status-daemon-and-killproc-from-rh-init-d-functions-572529/)

MQMan 07-26-2007 04:05 PM

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.

MS3FGX 07-26-2007 04:31 PM

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.


All times are GMT -5. The time now is 03:57 PM.