2022 Developer Survey is open! Take survey.

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
28 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 ...
user avatar
0 votes
1 answer
17 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 ...
user avatar
  • 1,362
0 votes
0 answers
82 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 ...
user avatar
0 votes
1 answer
43 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 ...
user avatar
0 votes
0 answers
26 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....
user avatar
0 votes
1 answer
81 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 ...
user avatar
  • 127
1 vote
1 answer
31 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 ...
user avatar
  • 115
8 votes
3 answers
2k 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?
user avatar
  • 107
1 vote
1 answer
37 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 ...
user avatar
  • 665
0 votes
0 answers
52 views

inoticoming daemon started as service just vanishes

I'm trying to get inoticoming to start monitor a folder, and it's working if I start it manually, but I can't get it to autostart. I know it starts, because if I enters a non-existant directory it ...
user avatar
0 votes
0 answers
31 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 ...
user avatar
0 votes
0 answers
133 views

How to run Dropbox installed from Flatpak on Fedora automatically?

I'm running Fedora with Dropbox installed. It doesn't automatically update files in the Dropbox folder for me. How can I make it do this automatically? More information: installed using Flatpak on ...
user avatar
-1 votes
1 answer
25 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 ...
user avatar
0 votes
0 answers
29 views

how to use: "snap run tomcat" from the console?

What I'm looking to do is to start/stop tomcat from the console: nicholas@mordor:~$ nicholas@mordor:~$ sudo systemctl start tomcat Failed to start tomcat.service: Unit tomcat.service not found. ...
user avatar
0 votes
0 answers
76 views

How to make a systemd unit run as root when user logs in?

I want to have a systemd unit running as root when a specific user logs in. I've already tried creating a local systemd unit for the user (placing it in its home directory at ~/.local/share/systemd/...
user avatar
  • 148
-4 votes
1 answer
161 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: ...
user avatar
1 vote
2 answers
97 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.
user avatar
0 votes
2 answers
271 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 ...
user avatar
2 votes
3 answers
1k 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 ...
user avatar
  • 289
1 vote
1 answer
3k 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 ...
user avatar
  • 11
0 votes
0 answers
19 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?
user avatar
0 votes
0 answers
38 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&...
user avatar
  • 237
0 votes
1 answer
74 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&...
user avatar
  • 237
0 votes
0 answers
51 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=$! ...
user avatar
  • 237
0 votes
1 answer
235 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 ...
user avatar
  • 101
2 votes
0 answers
93 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 ...
user avatar
  • 283
2 votes
1 answer
333 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 ...
user avatar
0 votes
1 answer
101 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/...
user avatar
  • 125
0 votes
1 answer
93 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 ...
user avatar
0 votes
1 answer
177 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 ...
user avatar
5 votes
1 answer
1k 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 /...
user avatar
  • 423
0 votes
2 answers
53 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 ...
user avatar
1 vote
1 answer
481 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 ...
user avatar
  • 2,305
2 votes
2 answers
743 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?
user avatar
0 votes
1 answer
560 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 ...
user avatar
0 votes
1 answer
293 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'...
user avatar
2 votes
1 answer
3k 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 ...
user avatar
1 vote
1 answer
141 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
user avatar
0 votes
0 answers
512 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/...
user avatar
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=...
user avatar
9 votes
2 answers
4k 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 ...
user avatar
  • 203
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.
user avatar
1 vote
2 answers
110 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 ...
user avatar
  • 2,122
2 votes
1 answer
93 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 ...
user avatar
  • 141
0 votes
2 answers
462 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 ...
user avatar
  • 113
1 vote
1 answer
131 views

Where to put AWS credentials for daemon user?

I have a script that backs up a directory to AWS S3 every night. (The script is run via a systemd timer.) I would like to create a dedicated user for this service. Ordinarily, I would not create a ...
user avatar
0 votes
1 answer
570 views

How to use Triggerhappy deamon to overwrite files

I have Rpi4 with Volumio 2.729 installed. I use Triggerhappy to run a node.js script when keyboard button is pressed - the script will play corresponding internet radio station: module.paths.push('/...
user avatar
  • 43
0 votes
0 answers
222 views

Systemctl daemon only works when verbose is enabled

I have a daemon in init.d which except for the name and description has exactly the same structure as the standard ubuntu skeleton file. When I try to run said daemon using sudo /etc/init.d/mydaemon ...
user avatar
0 votes
1 answer
22 views

How to handle information overflow of man and the documentation?

I keep asking myself how to get familiar with the software (mostly a daemon) and its configuration. When running man <program name> I am very overwhelmed by the options available. How do ...
user avatar
3 votes
2 answers
4k views

Debugging systemd service

I'm trying to create a daemon to monitor my system's CPU temps and adjust the clock-rate if it gets too high, but I've never written a daemon before and I'm not sure I've done any of it right. I ...
user avatar
  • 113

1
2 3 4 5
9