LinuxQuestions.org
Visit Jeremy's Blog.
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 02-16-2010, 08:35 AM   #1
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 48
'daemon' command?


I recently installed a software package that needs a command called 'daemon' to be able to start up. Slackware doesn't seem to have this command and I'm unable to find it. Where can I get it and what exactly is it that it does?
 
Old 02-16-2010, 08:42 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
"daemon" is a generic term for a program that runs in the background. Perhaps the instructions are telling you to run a command which starts a daemon......e.g. after installing cups, you start it by entering "cupsd".

Please tell us what the package is and exactly what the instructions say.
 
Old 02-16-2010, 08:47 AM   #3
rg3
Member
 
Registered: Jul 2007
Distribution: Fedora
Posts: 527

Rep: Reputation: Disabled
Maybe the guy is right. I've seen a "daemon" command in some BSDs I've worked with.

http://www.digipedia.pl/man/doc/view/daemon.8.html

No idea where to get the code, though.

Edit: libslack, which is not directly related to Slackware, seems to have a daemon command:

http://libslack.org/

Last edited by rg3; 02-16-2010 at 08:49 AM.
 
Old 02-16-2010, 08:58 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
I found a system call called "daemon", but not a BASH command. If you run an exectuable that want to run in background, I'm betting it uses this system call.
 
Old 02-16-2010, 09:18 AM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
If you source the file "/etc/rc.d/init.d/functions" then your bash shell will have the function available called "daemon".
So, in the program's startup script add this line somewhere at the top:
Code:
source /etc/rc.d/init.d/functions
Eric
 
Old 02-16-2010, 09:20 AM   #6
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Interesting, but we don't yet know if that's what OP needs.....
 
Old 12-07-2011, 08:00 AM   #7
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Original Poster
Rep: Reputation: 48
Old post, but I'll add this anyway in case somebody else needs it too. Like rg3 pointed out, this is indeed what it is:

http://www.libslack.org/daemon/

It compiles and runs just fine in Slackware, but usually it's also possible to just edit the rc-scripts so that they don't need it. The daemon function in /etc/init.d/functions is not compatible with this (how else...)

Last edited by alienDog; 12-07-2011 at 08:08 AM.
 
  


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
bash: daemon: command not found linx win Fedora 3 02-16-2016 01:43 AM
Send a message via command line without sendmail daemon. sonenberk Linux - Software 1 11-22-2005 01:31 AM
calling system command in daemon csfalcon Programming 2 05-13-2005 11:17 AM
Any command to check Daemon acbenny Linux - Networking 1 07-29-2004 01:38 PM
Any Command to check Daemon acbenny Linux - General 1 07-29-2004 12:51 PM

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

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