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.
Questions tagged [daemon]
286 questions
0
votes
1 answer
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 connection is up again, OpenVPN tries to reset…

iveqy
- 111
- 1
0
votes
1 answer
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 because it cannot read an important config file…

EliteRaceElephant
- 103
- 2
0
votes
1 answer
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
- 260
- 3
- 13
0
votes
1 answer
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 directory tree on the same host as the rsync daemon and…

David Patterson
- 141
- 1
- 6
0
votes
1 answer
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
My service file looks as follows
[Unit]
Description=HAProxy Load…

cyeostoragrn
- 19
- 4
- 11
0
votes
2 answers
"Must have" tools for managing arbitrary *nix daemons and their activities
What tools do you advise for managing running daemons? This includes:
Load monitoring: renice a daemon when it slows down the whole server
Keeping alive: restart it when it's not functional. Maybe, connectivity checks?
Any advanced log…

kolypto
- 11,058
- 12
- 54
- 66
0
votes
1 answer
Autostart/restart program simply with daemontools in debian 9
For example make vlc start and play a video full screen on boot.
After working this out here it is:

Hayden Thring
- 147
- 16
0
votes
2 answers
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/include/boost/smart_ptr/shared_ptr.hpp:424: T*…

Achim
- 283
- 3
- 13
0
votes
1 answer
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-folders to daemon, and everything worked fine.…

Chris
- 11
- 1
0
votes
3 answers
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 mailer daemon delivers from…

Sefam
- 111
- 3
- 8
0
votes
3 answers
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 > ~/rsynclog &
My understanding of the above command…

melchoir55
- 101
- 3
0
votes
1 answer
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 it with systemd. I want the application to be always…

Antoine
- 125
- 5
0
votes
1 answer
Appropriate systemd unit location for software not installed using a package manager
According to https://www.freedesktop.org/software/systemd/man/systemd.unit.html, the default unit path is…
/etc/systemd/system: Local configuration
/run/systemd/system: Runtime units
/usr/lib/systemd/system: Units of installed packages
If I am…

Steve Jorgensen
- 229
- 2
- 9
0
votes
3 answers
How to check to see if daemon is running
I have a simple bash script I'd like to run as a daemon...
#!/bin/bash
while true; do
crontab cron
sleep 58m
done
I run this as a daemon using this command...
setsid copy_cron.sh >/dev/null 2>&1 < /dev/null &
[1] 17025
But once it's running, I…

some1
- 79
- 6
0
votes
1 answer
PHP websocket script running as daemon stops working after a while
I start my websocket script like so:
nohup php server.php &
and I close the ssh client and it seems to be working fine for a while, but after say half an hour or so it stops working, any idea why and how to make it permanent?