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
1 answer
392 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 ...
Mohammad Al-Hajj's user avatar
0 votes
1 answer
1k 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 ...
Tatsu_GC's user avatar
6 votes
1 answer
4k 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 /...
Paul's user avatar
  • 507
0 votes
2 answers
120 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 ...
dotslashlu's user avatar
1 vote
1 answer
1k 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 ...
Alexis Wilke's user avatar
  • 2,827
2 votes
2 answers
2k 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?
CaptainCodeman's user avatar
0 votes
1 answer
1k 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 ...
Julián Carvajal Montoya's user avatar
0 votes
1 answer
515 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'...
Justanothermatt's user avatar
2 votes
1 answer
9k 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 ...
Audra Jacot's user avatar
1 vote
1 answer
669 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
Nuñito Calzada's user avatar
0 votes
0 answers
1k 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/...
Cameron Sparr's user avatar
1 vote
0 answers
3k 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=...
Nuñito Calzada's user avatar
10 votes
2 answers
11k 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 ...
Dojo's user avatar
  • 253
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.
Frank Jones's user avatar
1 vote
2 answers
218 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 ...
Time4Tea's user avatar
  • 2,346
2 votes
1 answer
110 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 ...
lezebulon's user avatar
  • 141
1 vote
2 answers
2k 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 ...
Sol33t303's user avatar
  • 123
1 vote
1 answer
337 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 ...
Thom Smith's user avatar
0 votes
1 answer
951 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('/...
Loproc's user avatar
  • 43
0 votes
0 answers
304 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
23 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 ...
mortytheshorty's user avatar
3 votes
2 answers
5k 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 ...
iggy12345's user avatar
  • 123
2 votes
1 answer
1k views

How to create daemon without systemd

I'm using AntiX Linux, which is not using systemd, and I want to create a daemon in which I can echo to do something. How do I do that properly? This is how I want to use it: ... echo "got signal ...
Demiler's user avatar
  • 43
1 vote
1 answer
422 views

How are the kernel daemons running automatically?

I have written my custom init (PID 1) script. In that script I have just mounted the necessary filesystems, but if I run ps aux the list is similar to below: / # ps aux PID USER TIME COMMAND ...
Karthik Nedunchezhiyan's user avatar
1 vote
1 answer
3k views

jitsi-videobridge.service: daemons using outdated libraries

Ever since the installation of the Jitsi video conference software, when executing needrestart, a utility that checks which daemons need to be restarted after library upgrades (or each time new ...
Paulo Tomé's user avatar
  • 3,782
0 votes
1 answer
415 views

launch a dotnet core executable through daemon systemd in relative path

I have developed and published a web application on dotnet core for linux arm machine. To do this, the command has been launched: dotnet publish --runtime linux-arm -p:PublishSingleFile=true And as ...
Fco Javier Balón's user avatar
-2 votes
1 answer
170 views

Track daily, weekly, monthly computer usage?

I am looking for a simple program to run in the background and track my computer usage (number of hours) with simple reporting for daily, weekly and monthly time frames. My environment: Fedora ...
orschiro's user avatar
  • 995
0 votes
1 answer
1k views

Unable to get systemd to active status

I'm trying to use systemd on Ubuntu 16.04 to run a python 3 process. I've been following the article How to Install and Configure Supervisor on Ubuntu 16.04. I'm unable to get the systemd service ...
goose's user avatar
  • 103
16 votes
3 answers
33k views

What is the avahi daemon?

I just learning about daemon, by that time I came know avahi daemon can you please explain detaily about avahi daemon and why linux has a avahi user ?
MP Creations's user avatar
1 vote
1 answer
3k views

AIX and daemon service

I see that the daemon service is started and stopped via the commands: startsrc and stopsrc on group/subsystem. I have init.d script and I want to make it daemon service in AIX. From these commands ...
Gordon's user avatar
  • 21
-1 votes
1 answer
691 views

auto nice daemon

I know path to parent executable (launcher). I would like to kill all other launchers without child processes (if any). I don't know PID of child process(es). Only kids should have high priority (...
user894319twitter's user avatar
2 votes
1 answer
659 views

Cronjobs not running. Cron daemon not working

First of all, the server specs: VPS - OpenVZ, Ubuntu 14, Kernel 3.10 Now, it appears that the cron daemon is not running ANY crojobs at all and i cannot find out why. I tried: Rebooting the server....
Homeroe's user avatar
  • 21
1 vote
1 answer
558 views

Programs can't connect to pulseaudio unless I kill and restart the daemon

The pulseaudio daemon is running after startup, but I can't change the volume because pamixer and pavucontrol can't connect to the daemon. I have to kill and restart the daemon to get everything ...
Dagoth Ur's user avatar
  • 143
0 votes
0 answers
92 views

How can I automatically revert a file's ownership when changed?

I have a file that is periodically updated by vendor software. When this happens, it changes the group ownership, and my internal system can no longer read it. Is there a simple way to update the ...
zwiebelspaetzle's user avatar
3 votes
1 answer
5k views

Virtual Machine manager Connection Failures

I want to apologize before I begin-- I know that this problem has been asked about before, and I've found some of the threads. Unfortunately, I'm extremely new to Linux, and I'm getting lost trying to ...
NegativeFriction's user avatar
1 vote
1 answer
994 views

Windows Subsystem for Linux (WSL) not actually saving $DOCKER_HOST

The situation: I develop on a windows VDI that uses the WSL to run docker, and I'm actually using a remote docker daemon running on a Red Hat server. Locally, I have the DOCKER_HOST variable set to ...
Joshua Schlichting's user avatar
3 votes
1 answer
2k views

What is the difference between Daemon and the normal running process?

I have been implementing various services in python for a Linux based embedded system. There is one driver service that needs to run forever as soon as the system boots. It spawns the other services ...
Rahul Gusai's user avatar
2 votes
1 answer
70 views

How to boot el6 linux without some enabled daemon running?

I've installed Oracle Linux 6 and Oracle 12c. I don't remember if I've configured crontab to launch some script or not, but during the system's booting, it stops just after crond daemon has been ...
Gryu's user avatar
  • 837
1 vote
1 answer
3k views

Executing a daemon using systemd service doesn't return

I'm trying to execute a daemon program from a systemd service, however when I start the script from a command prompt, either manually (systemctl start) or as part of the debian installation (dpkg -i ...
user5265160's user avatar
1 vote
1 answer
102 views

Debian: set a command to be "always up" (and restart when updated)

Suppose I have a REST API defined in: rest-api.py Which I would like to make 'always up': setsid rest-api.py 2>&1 > /var/rest-api/log.0 logrotate rest-api.conf # now: command to watch ...
Chris's user avatar
  • 961
0 votes
2 answers
616 views

Unable to power up systemd service

I just got everything set and done with my python flask project and I would like to make a service out of it. In order to get started, I've made a bash file which is supposed to start the server and ...
Terchila Marian's user avatar
0 votes
0 answers
764 views

systemd: forking process immediately calls execStop

I've set this up as a barebones thing we'd like to get running on a machine: [Unit] Description=My Daemon [Service] Type=forking ExecStart=/opt/myscript/daemonWrapper start # ExecStop=/opt/myscript/...
kairoca's user avatar
0 votes
3 answers
6k views

Unable to connect with MongoDB when giving mongod command in Cli

I'm trying to install mongoDb on centos VM and followed few sites like https://linuxize.com/post/how-to-install-mongodb-on-centos-7/ , https://www.digitalocean.com/community/tutorials/how-to-install-...
Parul Chourasia's user avatar
0 votes
3 answers
4k views

Proper way to start a background process

I am just trying to start up a basic node.js server on a remote machine in a ssh session. This seems to work: nohup node server/server.js & disown Maybe I don't need nohup? what's the "official"...
Alexander Mills's user avatar
1 vote
2 answers
7k views

System service running python code exit with error code status 1

_note: the original posted question is edited and its faced has changed quite a bit! Summary: A python script using apshceduler fails to load as service with exit code staus1. Important to note that ...
sangharsh's user avatar
2 votes
1 answer
918 views

How to run a daemon only when a specific application is running?

I have a user-space daemon, call it maxwell, that executes various actions based on D-bus signals from another application, call it room. I would like to run maxwell as soon as the user starts room, ...
A.P.'s user avatar
  • 364
0 votes
1 answer
439 views

How to restart a systemd service whenever Chromium-browser opens/launches?

I have a systemd service that must be restarted whenever Chromium-browser opens/launches. [Unit] Description=Load cgroup configs After=multi-user.target [Service] Type=forking ExecStartPre=/bin/echo ...
Hammad Ullah's user avatar
0 votes
0 answers
427 views

How to run a process in background on startup?

I'm trying to run a process(myfile) on startup on my yocto linux board, but I'm getting either IOCTL or segmentation fault while I use nohup or & to run in background. I could run myfile in ...
reportin' in's user avatar
-2 votes
1 answer
56 views

Is it possible to make a crontab using daemon?

We were asked to make a whole cron stuff, not making the cron job but the actual cron that will work with the date/time that we input to them.
Aphro20's user avatar
0 votes
0 answers
49 views

How to ensure custom Debian service starts first?

I am writing a custom application on Debian on a beaglebone black variant. I want to have my application be the first service that gets started when the system boots, and I want the system to wait ...
user77232's user avatar
  • 113

1
2
3 4 5
9