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

$EUID is empty in /etc/init.d/celeryd

I'm trying to configure the celery worker as a daemon as per Running the worker as a daemon. Even though I work directly from root I can't run the service since the $EUID is empty and thus the condition if [ "$EUID" != "0" ]; then echo "Error:…
user2776801
  • 131
  • 8
1
vote
2 answers

UNIX daemon processes file descriptors

I read in different sources that a common thing to do for a process that would become a daemon is to redirect STDIN, STDOUT, STDERR to /dev/null in order to prevent the daemon from spamming the console, which makes perfect sense. I was curious why…
Alex
  • 635
  • 6
  • 15
1
vote
1 answer

MySql Event Scheduler Call PHP Script

I am playing around with MySql Events for the first time. Here is the event... DELIMITER $$ CREATE EVENT testEvent ON SCHEDULE EVERY 1 minute STARTS '2014-01-01 03:00:00' DO BEGIN /* INSERT INTO test(text) VALUES ('text');* <- THIS WORKS JUST…
gfrobenius
  • 3,987
  • 8
  • 34
  • 66
1
vote
1 answer

simple daemon thread doesn't output msg

I was learning daemon thread content from "Think in Java", however, while I tried to run to daemon thread and was expecting some output, it gave me nothing... my programming IDE is Eclipse and operating system is ubuntu13.04... Please let me know…
shanwu
  • 1,493
  • 6
  • 35
  • 45
1
vote
0 answers

How to call subroutines in Fortran parallelized with MPI in an SMPD environment

My problem is that when I try to call a simple subroutine when I use mpi in Fortran, the simple multi-purpose Daemon (SMPD) gives this kind of error : `CreateProcess failed, error 2 unable to start the local smpd manager. CreateProcess…
1
vote
0 answers

Tibco dataloss remote daemon did not satisfy our retransmission request

I am having some real problems now with TIBCO RV, at the exact same time two machines reported dataloss on INBOUND. The 3rd machine, the remote daemon, did not report any unusual errors. This is happening too often, even though I've manually changed…
CristiL
  • 161
  • 1
  • 3
  • 10
1
vote
0 answers

Launch daemon iPad

I wrote a launch.plist for daemon and put it into /Library/LaunchDaemons/ (iOS 6.1.3) when I try to unload/load daemon from my UIApplication with this code: system("launchctl unload /Library/LaunchDaemons/launch.plist"); system("launchctl load…
1
vote
2 answers

c daemon() for unix doesnt work with sleep()

I have very simple code that should run on background and at 1 am shut down the computer: #include #include #include int main() { time_t t;struct tm * now; daemon(0,0); while(1){ t = time(0); …
Ruli
  • 2,592
  • 12
  • 30
  • 40
1
vote
3 answers

Running guard as a daemon proces

I am using guard to watch a directory, as soon as files are uploaded into the directory Guard a rake process gets triggered. Is there any way to run Guard as a daemon process, Not been able to find out anywhere in the documentation.
mohit
  • 1,913
  • 3
  • 16
  • 23
1
vote
1 answer

Hadoop Yarn Daemons Stop Running

Running start-dfs.sh and start-yarn.sh followed by jps gives the following output: 8227 ResourceManager 8328 NodeManager 7804 NameNode 8366 Jps 8077 SecondaryNameNode 7901 DataNode If I run jps about 5 seconds later, the ouput is: 7804…
Olshansky
  • 5,904
  • 8
  • 32
  • 47
1
vote
2 answers

Rails - Delayed_job start script don't start (command.rb:73:in `mkdir': File exists)

I've got a problem getting delayed_job script to work. The delayed_job rake tasks "rake jobs:work" works fine in development and in production environment. But when I try to start it up with the script I get the following…
coderuby
  • 1,188
  • 1
  • 11
  • 26
1
vote
0 answers

Daemon to RSYNC data fails after few successfull attempts

I have a Daemon coded in C to copy a file from local to remote using RSYNC and update the same file after every 5 second. Everything works fine but when the while loop has executed for say 10 to 15 times RSYNC fails. Here is the segment of code: …
Jayzcode
  • 1,305
  • 14
  • 15
1
vote
1 answer

python packages/tools to daemonize application

I want to daemonize a python application. I've heard of forever and upstart for Node.js, are there similar tools I can use for python?
user1802143
  • 14,662
  • 17
  • 46
  • 55
1
vote
1 answer

Proper behaviour of a linux daemon

What behaviours define a well written Linux daemon? I read about the double fork, closing standard file descriptors, and so on, but I wonder if someone experienced in writing these things could give me the low down.
mkaito
  • 1,005
  • 1
  • 10
  • 19
1
vote
1 answer

Unix daemon services error(using skeleton template). Lauches but status shows it's not working

In /usr/local/sleep/sleep.py I have #! /usr/bin/env python import time time.sleep(10) And I tried to launch it with skeleton template #! /bin/sh -x ### BEGIN INIT INFO # Provides: skeleton # Required-Start: $remote_fs…
user3057314
  • 65
  • 1
  • 7