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

mod_wsgi - user option in WSGIDaemonProcess doesn't work

I'm trying to configure my wsgi app to run under my user id. The OS is Ubuntu 13.10. This is virtual host config: ServerName lz5.local DocumentRoot /home/kompas/git/lz5/front-app WSGIDaemonProcess lz user=#1000…
kompas
  • 427
  • 2
  • 10
1
vote
0 answers

Configuring the Linux system daemons "flush" and "kswapd"

We have a heavy duty I/O node which transfers hundreds of giga bytes from disk to the network in each data transmission. We observe that our transmission application almost halts when the "flush"'s and "kswapd"'s CPU utilization approaches…
1
vote
1 answer

Bitcoind account negative balance

When using the accounts feature, an individual account balance may get negative if you spend more than its balance. That often happens, even if tou check the balance, due to transaction fees that are added to the transaction. Is there a way to…
user3325861
  • 59
  • 1
  • 1
  • 6
1
vote
0 answers

jython script doesnt start when run in background

I have a Jython script that is meant to run as a daemon in background, but somehow it doesn't start at all when I'm trying to run it in background. So I've tried to do a most basic "hello world" script, it works fine if I execute it in console like…
alexykot
  • 699
  • 1
  • 8
  • 21
1
vote
1 answer

CentOS Service startup with custom parameters (chkconfig)

CentOS uses the chkconfig command to add services to to the startup routine, but how do I add a service and pass parameters to that service? To be more precise, I'm setting up the Sphinx search engine on a CentoOS 6.5 server and the documentation…
Ric
  • 458
  • 1
  • 7
  • 23
1
vote
1 answer

Python daemon exits prematurely. So does everything else

My understanding of Python's daemon module is that I can have a script that does stuff, spawns a daemon, and continues to do stuff. When the script finishes the daemon should hang around. Yes? But that's not happening... I have a python script that…
Sheena
  • 15,590
  • 14
  • 75
  • 113
1
vote
1 answer

Observer Daemon on Pusher Channel

Currently I have a server-side user list that is pulled down by a User A's browser and then tracks locally the state of the system via pusher as users log on or off. As User A's status changes, it sends ajax updates to the server to notify its…
1
vote
1 answer

Debugging Stale Ruby Process

I have a ruby script inside a Rails project. The script includes environment.rb so that Rails gets loaded etc. It then listens to data on a TCP socket of another server, parsing it to keep a mysql database up to date. I'm using the daemons gem to be…
1
vote
1 answer

Amazon EC2 Linux Distro init.d script launching daemon with priority

I'm new to linux, and I have an script in etc/init.d which launches a daemon everytime my AWS EC2 linux server starts. So far everything is peachy except that the daemon I have needs to launch at a slightly lower priority. I've searched everywhere…
John Smith
  • 187
  • 7
1
vote
1 answer

What is the benifit of PCNTL-PHP for daemon process

I was researching and trying to do a daemon process using php, I found my self compelled to recompile PHP to enable PCNTL. Then I started to do some tests. I forked the single orphan example : #!/usr/bin/env php
Rabih
  • 298
  • 1
  • 6
  • 18
1
vote
2 answers

Python module threading as daemon with logging

I am trying to create a module init and a module mydaemon in Python 2.7 under Debian 7. The module init checks the requirements such as db connections etc. Then, mydaemon runs in a thread and uses the database to do things and write a logfile. The…
sheepy
  • 56
  • 6
1
vote
3 answers

Start multiple instances of Java daemon using Commons Daemon / JSVC

I've daemonized a Java program using the Commons Daemon / JSVC library and am able to successfully start/stop one instance of my service. What I really need to do is to be able to launch multiple instances of my service, starting and stopping each…
1
vote
4 answers

call function at specific time intervals in Linux

What is the best way to call a function inside a Linux daemon at specific time intervals, and specific time (e.g. at 12am every day, call this function). I'm not referring to calling a process with crontab, but a function within a long running…
bob
  • 1,941
  • 6
  • 26
  • 36
1
vote
1 answer

Stopping two loops thread receiving and sending data continuously

I have some trouble using threads in python. For some reasons I have to create 2 threads. Each thread is doing almost the same thing : a loop that receive data and send them. My problem is : I don't know how to stop those threads. The data are sent…
tutur29
  • 105
  • 1
  • 10
1
vote
1 answer

One Upstart to rule them all

I have a single project foo consisting of several daemons e.g. foo-web, foo-worker and for-cleanup. For each of them I have a very simple Upstart script, allowing me to use commands like service foo-web start. What I really want is to have another…
vbo
  • 13,583
  • 1
  • 25
  • 33