2022 Developer Survey is open! Take survey.

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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Strategies for detecting daemon memory leaks

I have a system which sends an email to a user twice a day, confirming that a specific daemon is still running and doing something. This has historically run for over a year without a restart, but the ...
user avatar
  • 35
0 votes
0 answers
36 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?
user avatar
  • 113
0 votes
1 answer
25 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 ...
user avatar
0 votes
1 answer
60 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"; ...
user avatar
0 votes
1 answer
166 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 ...
user avatar
0 votes
1 answer
111 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 --...
user avatar
0 votes
0 answers
710 views

How to execute systemctl daemon-reload inside a Docker container?

Recently I stumbled upon an issue when tried to setup a custom service (daemon) inside a Docker container, and I couldn't find anything that could help me yet. Here is the situation: I have a file ...
user avatar
  • 21
0 votes
1 answer
80 views

How to stop the swatchdog scipt running in the background?

Under Ubuntu 20 I have installed Swatchdog and started five daemon processes (running in the background). Now I wanted to stop the script, so I used apt-get remove swatch. However, as I could notice, ...
user avatar
  • 117
3 votes
2 answers
1k views

Docker daemon ignores daemon.json on boot

My Docker Daemon seems to ignore /etc/docker/daemon.json on boot. Similar to this question, I'm having some troubles telling the Docker daemon that it should not use the default 172.17.* range. That ...
user avatar
0 votes
1 answer
574 views

How do I find the PID file for a process given the PID number?

I'm trying to use Monit to monitor and send email alerts about a process when it stops running, but I need the location of the PID file for that process. I can find the PID number using the htop or ps ...
user avatar
0 votes
0 answers
550 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: # ...
user avatar
1 vote
1 answer
217 views

Setting up Auto-restarting php daemon

I have a php script with an environment variable from Fuelphp that I run with a command like FUEL_ENV=production php oil run task however, I'd like it to run as a daemon that will automatically ...
user avatar
  • 185
0 votes
1 answer
45 views

Configure a server program to restart after crash

I have a web service that runs on Linux. Is there a conventional way to ensure the server is restarted in the event of a crash? I suppose I might have a shell script which does something like this: ...
user avatar
1 vote
2 answers
683 views

screen inside systemd daemon on CentOS 8

So I want to run screen inside a systemd service so that I can give the process (inside the daemon) commands while it is running. See at the end of the question for examples of what I want be be able ...
user avatar
  • 11
0 votes
1 answer
413 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 ...
user avatar
1 vote
0 answers
434 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 ...
user avatar
0 votes
0 answers
514 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 /...
user avatar
  • 101
0 votes
1 answer
93 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 ...
user avatar
0 votes
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", ...
user avatar
0 votes
1 answer
1k views

Docker daemon seems to ignore no_proxy configuration

I'm trying to setup a docker daemon behind a corporate proxy (e.g. http://proxy.domain.name:3128) and want the daemon to ignore the proxy when pulling images from a local registry (e.g. registry....
user avatar
  • 113
0 votes
1 answer
340 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 ...
user avatar
  • 155
0 votes
1 answer
266 views

monit reload - how to know when it is finished?

I have this requirement to add services to monit dynamically. So what I am doing is copying the service monit file to /etc/monit.d/ (which is included in /etc/monitrc) and reloading monit. cp <...
user avatar
  • 123
0 votes
0 answers
685 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-...
user avatar
0 votes
0 answers
662 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 ...
user avatar
0 votes
1 answer
773 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 ...
user avatar
0 votes
1 answer
564 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 ...
user avatar
  • 111
1 vote
0 answers
76 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 ...
user avatar
  • 109
0 votes
1 answer
62 views

Java daemon keeps failing due to FileInputStreamException for config files outside its jar package

I want to implement a Java application as a daemon / service that runs on my Raspberry Pi with standard Debian Stretch (Kernel version 4.9). The java application starts but then throws an exeption ...
user avatar
0 votes
1 answer
162 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 ?
user avatar
  • 263
0 votes
1 answer
997 views

Rsync with rsync daemon is not preserving owners or groups

I am setting up a new internal backup strategy where multiple hosts on my LAN will be backed up to a single host running the rsync daemon. I am still in the early stages of this, backing up a ...
user avatar
2 votes
1 answer
1k views

How to start git-daemon at boot?

I've created scripts to control starting, stopping, etc. of my git-daemon on Fedora28. I'm now attempting to link these scripts to a systemd service so git-daemon will be available after reboot. The ...
user avatar
  • 469
0 votes
1 answer
2k views

Haproxy two processes are created by systemd

I have just compiled the latest Haproxy. [root@proxy system]# haproxy -v HA-Proxy version 1.8.8 2018/04/19 Copyright 2000-2018 Willy Tarreau <willy@haproxy.org> My service file looks as ...
user avatar
0 votes
1 answer
814 views

Autostart/restart program simply with daemontools in debian 9 [closed]

For example make vlc start and play a video full screen on boot. After working this out here it is:
user avatar
0 votes
0 answers
6k 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/...
user avatar
1 vote
1 answer
2k views

How to hide a password from ps, if it's given to a process via script or command line

So I have a certain program, which is running almost 24/7. I have a start script I've written in bash which simply does: ./app --user XXX --pass YYY There are a few more options, but they are ...
user avatar
  • 11
2 votes
1 answer
1k views

journalctl only refreshing after restarting systemd service?

I have a systemd service with gunicorn. I have a print statement in a function.Problem is that, journalctl does not show the print output when i call the function but it shows the output after ...
user avatar
  • 121
1 vote
0 answers
752 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, ...
user avatar
  • 910
1 vote
0 answers
171 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 ...
user avatar
1 vote
1 answer
110 views

How to turn a script into a daemon? So that upon a random script failure it is restarted by the kernel?

I have a script which streams important logs from another system. Unfortunately the machines are separated by a large distance which means that the connection between them can be poor. How to deal ...
user avatar
  • 1,497
0 votes
2 answers
1k views

How to capture details of an aborted process into a logfile

A daemon is started and running under Debian until it randomly crashes. I found out that it sometimes aborts due to an assertion which is shown if the process is running in foreground, like: /usr/...
user avatar
  • 263
0 votes
1 answer
671 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-...
user avatar
  • 11
0 votes
3 answers
3k views

Setting a domain as primary for the mailer daemon in postfix/dovecot

I currently have two domains set on my server on two different IPs. One is set on the domain's primary IP, and the second on a failover IP. Let's say I have domain1.com and domain2.com Currently, the ...
user avatar
  • 111
0 votes
3 answers
2k views

nohup daemon process dies when terminal is close

I'm trying to copy the contents of a remote server to my local computer. Here is the command that I'm using: nohup rsync -chavP -e 'ssh -p 23' --stats user@ipaddress:~/great/stuff /volume1/code > ~...
user avatar
2 votes
0 answers
435 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 ...
user avatar
  • 195
4 votes
1 answer
6k views

HostKeyAlgorithms in sshd config on debian - daemon reload fail

I have a Debian Jessie Server and I would like to verify the fingerprint of the ssh keys on the server about a DNS SSHFP record. This works fine, but if a client connect over ssh to the server, the ...
user avatar
36 votes
4 answers
145k views

Authentication is required to manage system services or units.

I have a strange issue whenever trying to stop/start a daemon as a regular user, it asks to authenticate with the credentials of another regular user - for example: [bob@server ~]$ systemctl stop ...
user avatar
-1 votes
1 answer
4k views

Killing a Perl process in Linux

I started a perl process that runs a script and I want to end it, but not the rest of perl scripts. How do I target it and not the rest?
user avatar
  • 151
1 vote
2 answers
3k views

systemd restart jobs on condition

I have a Windows-only daemon running on a linux box with wine and Xvfb. Due to this quite experimental setup, the daemon crashes periodically and i'd like to implement some kind of mechanism to ...
user avatar
  • 343
1 vote
1 answer
540 views

How do I run multiple on-going python scripts that might be changed in the future?

In a prod environment, I want to run some python scripts that run on start-up and never stop. Currently I am trying to run them as daemon processes, i.e. something like this in systemd: #!/bin/bash ...
user avatar
1 vote
0 answers
511 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 ...
user avatar

1
2 3 4 5 6