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

celeryd and celerybeat - "Received unregistered task of type..."

OK guys, this is driving me nuts. I've been working on this for a FULL DAY now, and can't get it to work! My celery project structure is this: # celery.py from celery.schedules import crontab from celery import Celery celery =…
user1102018
  • 4,369
  • 6
  • 26
  • 33
1
vote
2 answers

How to wrap python daemon around my code

I have a working server using Tornado now, according to the answer here: Python BaseHTTPServer and Tornado I'd like to daemonize it. I have been reading over and over this daemon class example here, but I can't figure out how it wraps around my…
Hamid
  • 4,410
  • 10
  • 43
  • 72
1
vote
1 answer

Is it possible to create a WordPress polling daemon as a part of a WP plugin?

A .Net developer, I have not yet done any WordPress plugin development, and would like some basic details/starting points for the following. As a part of a WordPress plugin, is it possible to create a polling daemon to kick off an intermittent…
ElHaix
  • 12,846
  • 27
  • 115
  • 203
1
vote
2 answers

Multithread problems with Poco::ServerApplication

I'm using Poco::ServerApplication and Poco::TaskManager at the same time and encountered a wired problem. If start without --daemon option, everything is ok. However when start with --daemon, the task passed to the taskmanager is never started. I…
Aetf
  • 196
  • 2
  • 10
1
vote
1 answer

Getting 'command not found' when running daemon in unix

I am attempting to run the script Daemon.php from a unix prompt as a daemon using the code below as per the instructions given in this tutorial. daemon Daemon.php --log=/var/log/Daemon.log When I run this I get the output daemon: command not…
Ben Pearce
  • 6,884
  • 18
  • 70
  • 127
1
vote
1 answer

Daemon continue working after SIGSEGV

I have a daemon which works under Linux. Program received SIGSEGV signal but it did not stopped immediately, according to log time when it received SIGSEGV is - 01:11:45.085 and time when it stopped to work is - 01:11:48.219 It is multithreaded…
unresolved_external
  • 1,930
  • 5
  • 30
  • 65
1
vote
2 answers

Linux daemon set /proc/

I once wrote a simple daemon in bash - also sets the values in /proc/*. For example, echo 50 > /sys/class/backlight/acpi_video0/brightness I want to rewrite in C + + and share - but how to use the /proc/* in C++? as the client
1
vote
3 answers

Java headless exception when I start java using a linux daemon

I have a linux daemon that starts a java instance for each user that is logged on the system. I use the followig command to start the java application for each user: cd /home/user/java_path/ && sudo -u user /opt/jdk1.7.0_17/java -jar software.jar…
Felipe Reis
  • 41
  • 1
  • 7
1
vote
1 answer

bash script to monitor myself

I need to develop a shell script that would not be started if another instance of them self is running. If I build a test.sh that monitors itself I need to know if it is already running and then abort, otherwise (if it not previously running) I can…
Stefano Radaelli
  • 1,088
  • 2
  • 15
  • 35
1
vote
1 answer

Unit Testing Apache Commons Daemon in Java

Iv researched around and cant seem to find any decent resource to help me JUnit test an apache commons daemon written in Java. I would like to be able to test that when a daemon starts it starts without fail and when it shuts down its shuts down…
user1694873
  • 473
  • 1
  • 11
  • 21
1
vote
1 answer

Daemonize, making program to work in background in python/wx.python

I created an complete logger-type program, that logs the certain data from the internet sources. It's GUI I coded in wx.python, now I want to daemonize it (if it is the right term). The program needs to run in background and user has to have option…
Domagoj
  • 1,674
  • 2
  • 16
  • 27
1
vote
3 answers

Daemon dies unexpectedly

I have a python script, which I daemonise using this code def daemonise(): from os import fork, setsid, umask, dup2 from sys import stdin, stdout, stderr if fork(): exit(0) umask(0) …
agiliq
  • 7,518
  • 14
  • 54
  • 74
1
vote
1 answer

Best way to handle memory intensive, long tasks in PHP

I have an APNS notification server sent up, which would in theory every day send about 50,000 to 100,000 users a processed notification (based on the amount of users of our web app that ties in with the iOS app). The notification would go out around…
roozbubu
  • 1,106
  • 4
  • 14
  • 30
1
vote
1 answer

netlink_unicast return errno -111 (Connection refused) in daemon mode

I have a Linux Kernel Module using Netlink in order to communicate with a daemon process running in the userspace. During the development phase I have always run the daemon executable like a normal process (without calling fork()) and all was…
ZedTuX
  • 2,859
  • 3
  • 28
  • 58
1
vote
0 answers

Strange errors when run ruby script in "Daemon.run" and no errors in case "bundle exec ruby"

I write sinatra based application with Daemons gem, app oAuth oh facebook and change cover of some page. So when i call daemon directly from "bundle exec ruby daemon.rb" no error in output, but when i run this daemon trought Daemons.run with log, i…
Alex808
  • 106
  • 1
  • 10
1 2 3
99
100