Questions tagged [daemon]

Computer program that runs as a background process, rather than being under the direct control of an interactive user.

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

Is it possible to create daemons for Flatpaks?

I have Evolution installed through Flatpak and was wondering if it is possible to daemonize it so that it automatically fetches new messages in the background. The reason for this is that, for some ...
  • 1,388
0 votes
0 answers
19 views

Software to maintain the state of a directory automatically

I have a directory that represents a storage of a smartphone. The storage is limited, and I want to unload some of the files from that storage to a server, and trim the smartphone directory. Is there ...
1 vote
0 answers
55 views

MongoDB 6 fails to start on CentOS 8

MongoDb run fine with the default settings. The issue occurs when I change the default log path in cat /etc/mongod.conf to the below: systemLog: destination: file logAppend: true path: /var/www/...
  • 429
0 votes
0 answers
8 views

Journalctl doesn't shows "no entries" and systemctl stops after a few minutes

Closed. This question is not about programming or software development. It is not currently accepting answers. This question does not appear to be about a specific programming problem, a software ...
  • 101
16 votes
1 answer
3k views

Double fork() - why?

I found the following function in the source code of catwm (a minimalistic window manager): void spawn(const Arg arg) { if(fork() == 0) { if(fork() == 0) { if(dis) ...
0 votes
0 answers
11 views

Cadvisor not launching at the correct port

I am trying to monitor the metrics of my computer using grafana, prometheus and cadvisor. I tried to run cadvisor as follows: cadvisor -port=9091 It works really well. However I want it to launch on ...
0 votes
1 answer
41 views

what is the difference between systemd's service and service and daemon and systemd files and systemd unit files?

I am new to systemd fundamentals. I read sth about systemd units and unit files and services. Would someone please define these three terms for me clearly ? I'm mixed up .Also what is a daemon ? is ...
0 votes
1 answer
30 views

Can't mount zram device on /tmp (Booting problem)

I have a simple script that creates a zram device and formats it to ext4 and finally, it mounts zram on /tmp. #!/bin/bash # create zram with size 1.5G # $zram_dev is created device path (eg. /dev/...
0 votes
0 answers
25 views

Systemd service run before kubernetes stops

I am trying to create my own service which executes a kubectl command when the machine stops. My service is: [Unit] Description=Run my custom task at shutdown Requires=k3s.service [Service] Type=...
  • 101
1 vote
0 answers
276 views

Securing Rsync Daemon Over SSH with NON-root user

Unfortunately, due to hosting provider, I am unable to access the rsync daemon as root and secure it accordingly. Instead, in order to take regular remote backups from the server, I have to access ...
0 votes
1 answer
122 views

Systemd Bash script daemon causes timeout and fails

I have a service file: Memory.service [Unit] Description=Memory Service [Service] ExecStart=%h/opt/bin/Memory --quiet SyslogIdentifier=MemoryService [Install] WantedBy=default.target It starts a ...
  • 1,384
0 votes
0 answers
452 views

rootless docker systemctl daemon errors

I am trying to run docker on rootless user, but I can't seem to start daemon in any way using systemctl. I use Debian 11. To log into the user with root privileges I use key pair and any login to ...
's user avatar
0 votes
1 answer
65 views

Is it possible to "daemonize a command"?

I have a command line utility which is able to receive an image via stdin and convert it to a different format and output it to stdout. I use this from a program, but every time I run it, a subprocess ...
0 votes
0 answers
29 views

Bitcoin-Core doesnt run on rasberry pi

When I try to download and run Bitcoin-Core on my rasberry pi 400 I am able to get to the point where I run the daemon and all is well, returns 'Bitcoin Core Starting' but blockchain does not download....
0 votes
1 answer
110 views

What is the best way to pass a parameter to a running script?

There is a script (on dash) that runs at system startup (as a daemon). The script is run under root. From under a user I create a file with the right parameter, and the script checks once a second if ...
  • 137
1 vote
1 answer
39 views

OpenVPN daemon keeps my harddrives spinning on NAS home server

I have a home NAS server with OpenVPN daemon installed, however I want to keep my harddrives in idle mode (so they last longer) when nobody actively uses the VPN or files on the NAS. OpenVPN daemon ...
  • 115
10 votes
3 answers
3k views

How do you make a process a service under systemd?

what is the command or how would you make a process into a service in Linux? isn't a service basically a daemon?
  • 137
1 vote
1 answer
73 views

Custom daemon: which user could I use to run as, to avoid using root?

I want to write a daemon that launches after boot, before login, that does background communication over USB-rawhid with an Arduino microcontroller. I would like to run this daemon as non-root. I ...
  • 705
0 votes
0 answers
63 views

Linux daemon is up and running. However, I cannot reach the web interface

I have (similar to this) problem on boot at linux. When it booted, "the daemon is up and running. However, I cannot reach the web interface. If I stop the running instance of the daemon and ...
-1 votes
1 answer
30 views

Possible to establish Ipsec connection when configure with different aes encryption bit size

I want to setup ipsec in my network, for that i am using racoon in linux devices. If i configure racoon with 2 different PC with different aes encryption will establish connection ? for eg. If PC-A ...
-4 votes
1 answer
293 views

What's the difference between: application, program, process, job, task, service, daemon, script, command? [closed]

Can someone clearly provide the differences and/or equivalences between these terms? I always get something mixed up, and keep losing track whilst reading documentation... Helpful previous answers: ...
1 vote
2 answers
178 views

When a daemon is re-parented to init (Pid 1) is the original PPID stored anywhere?

I am fairly certain the answer is no, but I was wondering if it's possible to decipher the original parent of a daemon process, prior to their daemonization and subsequent re-parenting process.
0 votes
2 answers
373 views

The process for tag protocol died unexpectedly

IDK why but my Arch-based garuda OS throw an error all the time: kf.kio.core: "The process for the tags protocol died unexpectedly." kf.kio.core: "The process for the tags protocol died ...
2 votes
3 answers
2k views

How to run rtorrent as systemd service under a dedicated user?

I am trying to get rtorrent to run as a systemd service, but the service wouldn't start. Here's the config file and any log I can get. Ask for more info if you need to. I am running: $ lsb_release -a ...
  • 339
1 vote
1 answer
4k views

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

Recently I stumbled upon an issue when I 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 ...
  • 11
0 votes
0 answers
21 views

How to find out from the logs what caused my program shutdown?

I am launching a program via -ssh in daemon mode. After couple days my program is down. Usually on other servers that's not happening. How I would figure out that?
0 votes
0 answers
42 views

A custom bash daemon progressively eating memory

Hello I've written a keep-alive daemon that when run, spawns json-server and respawns json-server if its process is killed. #!/usr/bin/bash function start () { trap 'echo "Clean up and exit&...
  • 247
0 votes
1 answer
90 views

Infinite number of process spawns despite wait and kill (bash)

This code should be a daemon that keeps alive nc command. If nc instance is dead then the daemon should respawn it. #!/bin/sh if [ "$1" != "__forked__" ]; then setsid "$0&...
  • 247
0 votes
0 answers
68 views

Bash simple process respawning daemon

Here is a script called simpled.sh: #!/bin/bash # if top is terminated i want it re-spawn while :; do top & tpid=$! ...
  • 247
0 votes
1 answer
263 views

Mysterious issue with the 5.10.7-3 Linux Kernel

For the last month or so, I've been getting a very weird issue pretty much daily. I would be using my system like usual, and the screen would just suddenly freeze. If there's audio playing, the last ...
  • 101
2 votes
0 answers
110 views

Lightweight process/daemon monitor? (ie. monitor and restart a single process)

Can anybody recommend a lightweight process/daemon monitor? I'm running a user-land service process and I just need something to monitor and restart it when it crashes. The system is running embedded ...
  • 293
2 votes
1 answer
427 views

What's the point of a daemon detaching itself from controlling terminal if the terminal can never be closed?

All sources I've read about writing a daemon say that daemons should detach themselves from controlling terminal so that if the terminal is closed, the daemon won't get SIGHUP. But daemons are always ...
0 votes
1 answer
166 views

Trouble Starting up a Daemon written in C with systemctl

I am trying to register my daemon program that I wrote with C with systemd. I use the following script, [Unit] Description=App After=network-target [Service] Type=simple ExecStart=/usr/local/bin/...
  • 125
0 votes
1 answer
147 views

c# script waiting in terminal but exiting directly as a daemon

i am a complete c# noob (i know Java though) i have a c# script i modified. I want to run it at startup using a daemon and systemctl (the original is this NZXT automatic fan controller script) the ...
0 votes
1 answer
289 views

enabled systemd service won't start on boot

I have 7 services enabled, 6 of them depend 1 the first one starting and it runs fine. 3 start fine and the other 3 won't start on boot but if I run sudo systemctl start service it runs fine. Can you ...
5 votes
1 answer
2k views

What are the daemon user and group for?

I am configuring a web server on OpenBSD and I can see in /var/www/ that all directories except /var/www/cache/ are root:daemon. I then see that the user for the daemon group is daemon $ grep daemon /...
  • 433
0 votes
2 answers
70 views

Get output and input into daemon processes

Background When a SIGHUP is sent to a running nginx master process to reconfigure, if there're password encrypted certificate key, nginx(specifically the openssl library) will ask for input, as in the ...
1 vote
1 answer
664 views

How do I setup an Ubuntu package to start a user service and only start it when the user logs in?

I am trying to setup a service which requires access to X-Windows and DBus. First I tried it as a background application, but that just doesn't work. I use the "auto-log user" feature. Now I ...
  • 2,419
2 votes
2 answers
973 views

Does a process specified in systemd have to be a daemon?

I have a server that I want to add to systemd so that it launch automatically and restarts on crash. Does the server have to be a daemon?
0 votes
1 answer
710 views

Play a sound from a daemon Linux

I have Manjaro Linux and I am trying to play a sound (mp3 and wav) using a script from a daemon. Basically, I have a script.sh with a command trying to play the sound. This script is called from a ...
0 votes
1 answer
336 views

Create a background daemon to listen for incoming SSH requests

I'm just trying to see if this is possible before I start working on it. Here's the scenario, I want the server to be constantly listening for SSH requests (which I'm sure it already does, I just don'...
2 votes
1 answer
4k views

ssh-add not able to connect to ssh-agent

I know that ssh-add is "front-end" of ssh-agent. But ssh-agent on my computer is already running (I could find it in top). When I type ssh-add, it said "Could not open a connection to ...
1 vote
1 answer
164 views

Debian 10: Checking the Status of Services

I want to know if it is possible when checking the status of a service on the system with systemctl status application.service, see the full log lines, not only the first few log lines
0 votes
0 answers
626 views

systemd: allow override of After= directive

I have two services, service Init and service Daemon. Service Init does system setup and is often used to setup a configuration file for service Daemon (ie, echo "MY_ENV_VAR=true" >> /etc/...
1 vote
0 answers
2k views

Missing '='. in Debian service

I've created this service in /etc/systemd/system/webapp.service in a: Distributor ID: Debian Description: Debian GNU/Linux 10 (buster) Release: 10 This is the content: [Unit] Description=...
9 votes
2 answers
5k views

systemd not detected, dockerd daemon needs to be started manually

I am trying to install Docker daemon as non root user, following this guide: https://docs.docker.com/engine/security/rootless/ First, I removed the existing rootful docker daemon. Then I created a ...
  • 223
10 votes
3 answers
2k views

Why do daemons only read their configuration file when they start up? Why can't they "react" to changes in that file/hot reload? [closed]

I know daemons have to be sent a HUP for config changes to take effect. But I'm wondering why this is, and if it is possible to create a daemon responsive to such changes.
1 vote
2 answers
131 views

Are 'per-user' daemon services a new thing?

I always had the impression that daemon processes were system-wide services that are run, owned, controlled and maintained by the 'init' system. However, I have recently learned that some daemon ...
  • 2,204
2 votes
1 answer
100 views

How to make daemon unique?

In linux, is there a way to make a daemon "unique" ? Ie if the daemon is already started/running, not start it again. I think it can be done by creating a specific file when the daemon is first ...
  • 141
0 votes
2 answers
643 views

Is it possible to set niceness value of a program in advance?

I want my games and certain programs (such as WINE) to be automatically given a higher priority then everything else, and while I'm at it I probably want to adjust the niceness value of a few other ...
  • 113

1
2 3 4 5
9