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
0answers
29 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 ...
0
votes
1answer
45 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, ...
2
votes
2answers
141 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 ...
0
votes
1answer
78 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 ...
0
votes
0answers
115 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: # ...
1
vote
1answer
139 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 ...
0
votes
1answer
35 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: ...
0
votes
1answer
197 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 ...
0
votes
1answer
176 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 ...
1
vote
0answers
408 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 ...
0
votes
0answers
113 views

collect remotely docker metrics on device A from remote-device B

I would like to collect docker metrics remotely with Telegraf [inputs.docker] plugin from InfluxData on device A. Telegraf and InfluxDB themselves are docker container on another device B. Both ...
0
votes
0answers
162 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 /...
0
votes
1answer
71 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 ...
0
votes
0answers
944 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", ...
0
votes
1answer
335 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....
0
votes
1answer
166 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 ...
0
votes
1answer
162 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 <...
0
votes
0answers
481 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-...
0
votes
0answers
421 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 ...
0
votes
1answer
541 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 ...
0
votes
1answer
411 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 ...
1
vote
0answers
63 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 ...
0
votes
1answer
47 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 ...
0
votes
1answer
127 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 ?
0
votes
1answer
785 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 ...
2
votes
1answer
884 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 ...
0
votes
1answer
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 ...
0
votes
1answer
634 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:
0
votes
0answers
4k 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/...
1
vote
1answer
1k 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 ...
1
vote
1answer
905 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 ...
1
vote
0answers
747 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, ...
1
vote
0answers
147 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 ...
1
vote
1answer
106 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 ...
0
votes
2answers
923 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/...
0
votes
1answer
446 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-...
0
votes
3answers
2k 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 ...
0
votes
3answers
1k 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 > ~...
2
votes
0answers
339 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 ...
3
votes
1answer
4k 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 ...
30
votes
4answers
116k 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 ...
-1
votes
1answer
3k 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?
1
vote
2answers
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 ...
1
vote
1answer
487 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 ...
1
vote
0answers
356 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 ...
2
votes
1answer
3k views

Uptime for individual service

I am running multiple unicorn processes on my production server. Now I want to check the individual service uptime of my services. For instance if any unicorn process restart automatically, it should ...
11
votes
1answer
28k views

Systemd : Run a Python Script At Startup (virtualenv)

I have a python script that I normally run it with this command: (environment) python run.py I want to run this script at start. (I'm using ubuntu) Here is my service: [Unit] Description=My Script ...
0
votes
1answer
87 views

How to launch let'schat (nodejs app) as deamon?

I have installed "let's chat" on my server. In the documentation, they say to launch the application with npm start from the directory where the application is installed. But i'm unable to launch ...
33
votes
4answers
100k views

Configuring Systemd Service to run with root access

I have a service in the form of a node.js application set up with Systemd on Raspbian Jessie and it is using its own user account. However, I am finding that the service does not run correctly because ...
2
votes
1answer
710 views

Why would one use “stop; exit 1” in an Upstart script rather than just “exit 1” in case of an error?

I am maintaining an Upstart script (version 0.6.5) and in the pre-start script, there's a test to terminate the service if a precondition is not met: pre-start script if [ ! -f $REQUIRED_FILE ]; ...

1
2 3 4 5 6