Questions tagged [daemon]

A daemon is a process or program that runs in the background (i.e. requiring no user interaction).

Daemon processes are background programs found in Linux/Unix systems that are typically started during the booting sequence. They perform special management and utility functions, which may either perform consistent tasks like polling (i.e. the syslogd daemon) or wait for a command to do something (like handling setup of new SSH connections via the sshd daemon).

They can be initiated after start time using the systemctl command:

$systemctl start daemon.service

Some commonly used daemons include:

  • httpd (HTTP web server management)
  • mountd (Mounting of file systems)
  • nfsd (Sharing of network files)
  • routed (Management of routing tables)
  • ntpd (Network time protocol administering)
  • dhcpd (Dynamic host configuration protocol administering)
2634 questions
1
vote
2 answers

What's the correct way to stop a background process on Mac OS X?

I have an application with 2 components: a desktop application that users interact with, and a background process that can be enabled from the desktop application. Once the background process is enabled, it will run as a user launch agent…
mcsheffrey
  • 508
  • 4
  • 16
1
vote
1 answer

How to terminate the daemon initialized by setsid?

I start a process (a websocket server) using setsid command: setsid python mod_pywebsocket/standalone.py -p 12345 But how can I stop it? I am sure it is now running just don't know how to get the pid and kill it.
Xi Yu
  • 11
  • 2
1
vote
1 answer

SIGCHILD not catching signal when child process dies

I'm trying to create a daemon process that handles several child threads. But the child thread doesn't seem to send the signal back to the parent to call the function. i have tried to take it out of the class and make it a standard function but that…
DAB
  • 1,303
  • 14
  • 23
1
vote
1 answer

Installing Daemons

A simple link would be nice for me to understand how to install my C++ program as a daemon in UNIX, now I know some will say this should be on Server Fault, but as far as I understand it I need the init.d shell script to actually create the start…
Angel.King.47
  • 7,922
  • 14
  • 60
  • 85
1
vote
0 answers

Heroku web process timeout while running a daemon server of node.js backed with mongodb

I have running a daemon server to post the social network feeds on scheduled time. Currently, I have issue while running daemon server which is written in node.js and express framework backed with mongodb. Please see the following error which I got…
open-bugs
  • 11
  • 3
1
vote
3 answers

How can I get mounted name and (Drive letter too) on Windows using python

I am using Daemon tool to mount an ISO image on Windows XP machine.I do mount using Daemon command (daemon.exe -mount 0,iso_path). Above command will mount ISO image to device number. In my case I have 4 partition (C,D,E,F) and G for DVD/CD-RW. Now…
aberry
  • 447
  • 3
  • 10
1
vote
1 answer

OS X. How to get TISInputSourceRef (keyboard layout) of current active window of all system in daemon?

I want to get keyboard layout something like GetKeyboardLayout(threadId) in Windows. threadId is id of application with active window. I want to translate virtual key code to char of current language. Now I use TISCopyCurrentKeyboardInputSource()…
1
vote
1 answer

How to install CouchDB plugin/daemon like couchperuser

How can one install a CouchDB plugin/daemon like couchperuser?
redgeoff
  • 3,163
  • 1
  • 25
  • 39
1
vote
1 answer

Error in libcrypto.a when make C code

I'm trying to build a standalone server on Linux follow this instruction: https://github.com/kazuho/h2o But when I type "make h2o", I got an error: Linking C executable h2o /usr/local/ssl/lib/libcrypto.a(dso_dlfcn.o): In function…
nchv
  • 61
  • 3
  • 11
1
vote
3 answers

Sending signal to daemon in php

I have a daemon written in PHP which is running on my linux machine. I am trying to send a signal to it through another php file. For this purpose I am trying posix_kill function. But its not working. When I run the php page, I get an error that php…
Riz
  • 6,746
  • 16
  • 67
  • 89
1
vote
1 answer

launchd: sleep in GCD managed signal handler

I encounter a strange situation in a launchd managed daemon when I try to sleep in the SIGTERM handler that is managed with Grand Central Dispatch as described here. Everything works fine and I do get a SIGTERM signal handler before receiving a…
1
vote
2 answers

"MySQL gone away" in PHP daemon, using pcntl_fork

I'm trying to retrieve database values using a PHP daemon and fork (using pcntlfork) an instance for each id that was retrieved. Each fork is supposed to do some work and then alter the database value, so it won't be retrieved again. However, when I…
driesken
  • 93
  • 9
1
vote
0 answers

Perl socket visibility

I have a Perl script that creates a daemon listening from a socket. When I execute the client to send data to the socket gets connected without problems. But the daemon should be queried from other users and it is not possible. This is the daemon…
ShakMR
  • 115
  • 2
  • 10
1
vote
2 answers

Why start-stop-daemon needs privileges?

I am writing a Daemon and I want to use start-stop-daemon command to do it but, when I use it in the command line I get : The command could not be located because '/sbin' is not included in the PATH environment variable. This is most likely caused…
user3996615
  • 13
  • 1
  • 4
1
vote
0 answers

Python daemon status is unknown

I have created a python daemon by a Tutorial and it is running just as tutorial example has. But there are problems: The output of service --status-all says: [ ? ] testdaemon Can anyone help me to find out what those errors and warnings are or…
Parisa
  • 83
  • 1
  • 9