Questions tagged [daemon]

On linux an unix-like systems is demon the designation of processes running in the background and providing certain services. Direct user intaractions with demons are not intended.

55 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5 votes
0 answers
3k views

Running Celery as a Daemon while using VirtualEnv

I've setup and tested celery on my amazon linux server, using mysql as the messaging backend and it works fine when running the program directly. My python project and celery install are located in a ...
elkelk's user avatar
  • 161
4 votes
1 answer
226 views

Should I rather explicitly run programs in foreground (instead as a daemon), or `expect fork` when configuring upstart daemons?

Many programs allow to be run either in daemon mode (which is usually the default), or explicitly run it in foreground with a flag such as -f. Now when configuring upstart to run programs like this, ...
Jakub Arnold's user avatar
  • 1,794
2 votes
0 answers
10k views

How to kill rsync daemon that keeps respawning

How do I kill these rsync daemons that keep respawning root@que2 ~ # ps aux | grep rsync root 9660 0.0 0.0 19928 2844 ? S 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/...
Vituvo's user avatar
  • 337
2 votes
0 answers
508 views

How can I troubleshoot a systemctl maintained daemon, on Oracle Linux 7, when it dies immediately after being spawned?

I'm trying to run jenkins, via systemctl, and it keeps dying immediately after being started. There is nothing in the "systemctl status" nor in "journalctl". Jenkins logs also show nothing. I've ...
wsaxton's user avatar
  • 195
2 votes
0 answers
1k views

systemd user units and debian wheezy

I'm running a debian wheezy server and switched to systemd by installing systemd-sysv. So far everything works as before. Now I want to allow users to run/ manage their own units/ daemons with systemd....
gucki's user avatar
  • 828
2 votes
1 answer
3k views

udisks-daemon eating up all my memory

I'm operating a little storage server on debian, over the past months I've noticed the process udisks-daemon eating up almost all available memory. Is this just really aggressive caching or a memory ...
Harrald Vorreitner's user avatar
1 vote
1 answer
33 views

What is the fastest method of getting a small amount of data from whitelisted servers?

I have a bunch of servers which build various different programs for various different systems. Once a build has completed, it gets archived into a single file and compressed, then an md5sum is ...
Ben Holness's user avatar
1 vote
0 answers
710 views

Postfix doesn't run in macOS Ventura

I have just updated my Mac to macOS Ventura. When I try to start postfix, it says "$daemon_directory/master -t 2> /dev/null postfix/postfix-script: fatal: the Postfix mail system is already ...
Noah Wu's user avatar
  • 11
1 vote
0 answers
572 views

Retrieving the current PTP settings of an Ubuntu machine

I have an Ubuntu machine (18.04) with PTPd installed. I want to write a script that can determine what PTP settings have been set previously. Specifically, I want to find information on the master PTP ...
Eliezer Miron's user avatar
1 vote
0 answers
2k views

Lsyncd runs but does not update files

So I installed the daemon and configure it as : matias@~ $ cat /etc/lsyncd/lsyncd.conf.lua settings { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/tmp/lsyncd.stat", ...
Matias Barrios's user avatar
1 vote
0 answers
146 views

Sending different signals for system shutdown and manual stops in supervisord

I have a set of auto-scaled EC2 instances that run a daemon managed by supervisord on each instance. I want to differentiate the clean-up behavior for the following cases: when shutting down ...
Achimnol's user avatar
  • 109
1 vote
0 answers
841 views

How to run linux daemon in container linked to another container with docker-compose?

Disclaimer: I'm posting this here because people started to vote to close this question on SO as "off-topic". Although some people believe Docker questions should be posted on SO as opposed to SF, ...
rfgamaral's user avatar
  • 990
1 vote
0 answers
282 views

Run nscd in multiple network namespaces

How to run an instance of nscd daemon per network namespace? I did the following: ip netns exec <network_namespace> /usr/sbin/nscd However, it threw output /usr/sbin/nscd: already running ...
LinuxPenseur's user avatar
1 vote
0 answers
806 views

Debian 8/init.d: start daemon after "$named" is ready

I am trying to start a init.d daemon on Debian 8 after network and DNS is up and running. That's the script I am using: ### BEGIN INIT INFO # Provides: local_daemon # Required-Start: $all ...
noblemaster's user avatar
1 vote
1 answer
668 views

How can I create a log for an existing daemon?

I have a deamon running (that I did not create) and I need to be able to read its logs. Unfortunately, it does not have a log file. Is there a way to pipe the daemon's output into a file, and have it ...
jackwise's user avatar
  • 259
1 vote
1 answer
67 views

How to do remote calls from server A to B to create virtual machines

This is my first question on serverfault so I hope I'm doing this right as I'm usually on Stackoverflow :-) I have two Ubuntu 14.04 LTS servers, server A and B. Server A runs the web server where ...
Beeelze's user avatar
  • 161
1 vote
0 answers
604 views

"Job failed to start" - Hey but why?

I'm running through an error that's giving me serious headache. Tried to Google for it but all I find is about MySQL which doesn't apply here. I've just updated Node and Ghost (blogging platform) on ...
Antonio Laguna's user avatar
1 vote
0 answers
143 views

how do I set monit to non-daemon mode

I'm trying to get monit to just excite the monitrc script once and then exit. I've tried monit -v -Ic /tmp/monitrc but when I look at the output it says: Runtime constants: Control file =...
whisperstream's user avatar
1 vote
1 answer
2k views

Supervisord as Windows Service on Cygwin

I am attempting to run Celery as a Windows Service using Supervisord. I followed the configuration laid out on the Celery site and here. I have set up a virtual environment to run supervisord through ...
Jason Hawkins's user avatar
1 vote
0 answers
377 views

Oracle 6.5: MySQL Daemon failed to start

I installed MySQL by following these instructions on my Oracle Linux Server release 6.5, specifically using the yum package installer command, yum install mysql mysql-server mysql-libs mysql-server ...
beckah's user avatar
  • 111
1 vote
0 answers
138 views

Upstart - make "reload" behave like "restart"

I have a daemon process that doesn't respond to SIGHUP sent when running reload. It runs under an unprivileged user, and I can't restart it without sudo privileges. Is there a way to make reload to ...
yprez's user avatar
  • 183
1 vote
1 answer
723 views

AFP / Apple Filling Protocol aka Netatalk access over Internet

I got a simple cloud server and thought it would be nice to have mac native afp Volumes accesss. Installed Netatalk and this seems to work pretty nice. No sensitive data or something but I don't ...
PJJ's user avatar
  • 111
1 vote
2 answers
458 views

init.d service died

Adapting some code from a linux forum, I've added a service script to /etc/init.d on my ubuntu natty server to start/stop/restart node.js It literally was working the first day I made it, but then ...
jerluc's user avatar
  • 111
1 vote
1 answer
114 views

On Mac upon reboot, how to make a new daemon start and an old daemon not start?

We have a daemon running on a Mac server (10.6.6). We want to install another newer version of the daemon along side it but not start it. Then at a specific time, we want to reboot the server and ...
Edward Tanguay's user avatar
0 votes
0 answers
31 views

Docker daemon inactive (dead)

I am having trouble with my Portainer GUI. I can't seem to find my local environment. As a solution, I changed some parameters in the 'docker.socket' file on my Ubuntu server. However, this seems to ...
harrymillz's user avatar
0 votes
0 answers
36 views

Dockerd run as ServiceUnit alters /tmp access

It's been my first success weeks developing Docker containers using dockerd along its plugins and recently i found out some problems after automating the daemon. Tried to manipulate dockerd as a ...
ogeid's user avatar
  • 101
0 votes
1 answer
2k views

How to restart deluged daemon on macos?

I am running an old macbook pro as a server and have deluged running on it. How can I restart the daemon without having to restart my server each time?
Stretch0's user avatar
  • 133
0 votes
1 answer
84 views

Is there a daemon that can poll Prometheus targets and relay to Graphite?

I am running a Graphite based collection, and have a couple of Prometheus only apps that I would like to be able to monitor through that. Does anyone know of a proxy-like piece of software that can ...
FlyveHest's user avatar
0 votes
1 answer
362 views

Multiple instances of systemd unit not writing to log files

I'm trying to create a systemd unit file that will take an argument for a php script. The small php script: <?php $val = $argv[1]; while(true) { echo "Argument = $val\n"; ...
DevOpsSauce's user avatar
0 votes
1 answer
764 views

clamav - clamd error when setup as daemon (mac osx)

Issue: Setting up clamav as a daemon process in mac osx throws some cumbersome errors and warnings while doing the setup and the documentation is good, but not perfect. I ran into some permission ...
codelinx's user avatar
0 votes
1 answer
681 views

How return to prompt after execution of script that spawns a daemon?

$ cat appleclue.sh #!/usr/local/bin/bash source ~/.venv/appleclue/bin/activate cd ~/applications/appleclue/appleclue-web/ git pull pip install -r requirements.txt python3.9 manage.py migrate --...
Victor Ribeiro's user avatar
0 votes
0 answers
2k views

Setting UMask in systemd override.conf is ignored

I'm using amavisd on fedora33 and trying to change the file permissions on the socket it creates so nagios and nrpe can read the file in the amavis group. The file permissions currently are as such: # ...
Alex Regan's user avatar
0 votes
1 answer
660 views

Fedora28 - firewalld stopped working as it unable to communicate with ABRT daemon

We are currently running a Fedora 28 server. Due to the server being restarting multiple times, FirewallD has stopped working. Based on the error messages presented when we run the command systemctl ...
Ashish Prajapati's user avatar
0 votes
0 answers
1k views

Linux OS hangs at boot due to daemon systemd service fault

i have a python script that does infinite loop on functions written, and i have added this to systemd as service so i want to run python script at background and control its from systemctl. sudo vi /...
Maria628's user avatar
  • 101
0 votes
1 answer
217 views

Making git daemon serve the repo I created

I've been wracking my brain over this and came to a possible conclusion with no solution. First, my dilemma. I have a project where I can create a repo programmatically. I can edit the description of ...
NetOperator Wibby's user avatar
0 votes
1 answer
846 views

How to start a daemon at boot time after all other services are ready

I have developed a daemon in Linux. It works correctly, however, when I set that script to be started at boot time, it has conflict with other service, so I need to start it after all services have ...
jstuardo's user avatar
  • 155
0 votes
0 answers
1k views

Running td-agent (fluentd) init.d script under Supervisor got (spawn error)

I have installed td-agent and they provide an init.d script that you can run it with, I have configured td-agent and I run it via the init.d script and it's running smoothly, but I want to move td-...
Iliyass Hamza's user avatar
0 votes
0 answers
1k views

Trying to enable auditd but svcadm not in solaris 10

I am new to Solaris. environment: Solaris 10/ i386 Here's my problem: I want to enable auditd to start generating system auditing log file. (Like service aduitd start in CentOS.) And every guide I ...
ktc's user avatar
  • 101
0 votes
1 answer
1k views

passing labels parameter to daemon.json in Docker

I am trying to setup docker daemon on Centos 7. The goal is to pass parameters to the overriding script in systemd and keep everything in daemon.json that is much more readable and cleaner Default ...
fromthestone's user avatar
0 votes
1 answer
720 views

OpenVPN exits when network connectivity is restored

I'm using OpenVPN as a daemon and when I lose the internet connection, OpenVPN waits for 2 minutes before it tries to restart each 5 seconds. This is as I want it to behave. However when the internet ...
iveqy's user avatar
  • 111
0 votes
1 answer
263 views

linux, daemon startup, determine if launched by initd or user

in my /etc/init.d/blabla script, which is the correct way to determine if the system is booting or the user root is runnig the script ? I am thinking about * parent pid * euid * terminal... pts ?
Massimo's user avatar
  • 260
0 votes
1 answer
1k views

Is it safe to give ownership of files to “daemon”?

I was having trouble uploading files using my CMS (Drupal). When I put more restrictive file permissions on, I could not upload anything. Then I changed the owner of the upload directory and all sub-...
Chris's user avatar
  • 11
0 votes
0 answers
1k views

Multiple Gunicorn daemons for Django projects with Nginx result in 502 Bad Gateway for one

I want to run two Django applications on the same server, with Nginx and Gunicorn. I can run them separately, but not both at the same time: When I try, one is OK, but for the other one I receive 502. ...
Hasan Can Saral's user avatar
0 votes
1 answer
5k views

multipathd not working after restarting

Multipathd is not working on CentOS 6.5 x86_64: device-mapper-multipath-libs-0.4.9-87.el6.x86_64 device-mapper-multipath-0.4.9-87.el6.x86_64 I'm getting below error while restarting ...
Gaurav Bhatkar's user avatar
0 votes
0 answers
76 views

Cross distro daemon command?

I'm trying to write a script to launch a daemon on both centos and debian. This is the current pseudo script: if [ =f "/etc/init.d/functions" ] then . /etc/unit.d/functions alias ...
Fez Vrasta's user avatar
0 votes
2 answers
171 views

Cannot bind to port > 1007?

I want to bind a server to port 1023. If I specify any free port > 1007, I have a "address already in use" error, but it works for ports <= 1007. Working as root on Debian 7.8... Any idea?? ...
greg's user avatar
  • 169
0 votes
1 answer
459 views

init.d script appears to run but dies immediately

I registered the init.d script and when I invoke this directly /etc/init.d/gae it appears to work...PID file is created but the process is no where to be seen by the time I do a ps I have googled and ...
Alex.Barylski's user avatar
0 votes
1 answer
353 views

Start daemon after specific samba share is mounted

I asked this question on AskUbuntu, but it's not getting any traction there... So I'll try here as well: I have a homebrew headless NAS running 12.04. In it I have a bunch of disks that are ...
getack's user avatar
  • 161
0 votes
0 answers
365 views

Why is there no (Debian) init.d script for usbipd? Should I write my own?

I just installed the usbip package on my Debian Wheezy (7.1) . For some reason, it comes without an init.d script. Why is there no init.d script for it? Should I roll out my own? Or am I doing ...
einpoklum's user avatar
  • 1,722
0 votes
0 answers
356 views

Java daemon: "...not allowed access to the window system right now." on boot

I have a daemon (/Library/LaunchDaemons/...) configured to launch on boot. However, I get the following error: Nov 17 20:36:24 server.local java[28972]: This user is not allowed access to the window ...
jstm88's user avatar
  • 757