Questions tagged [daemon]
Computer program that runs as a background process, rather than being under the direct control of an interactive user.
428 questions
10 votes
5 answers
2k views
Recommended way for a Linux app to inform user of an exception
In this context, an 'exception' is an undesirable scenario, which could be: a code-level signal (like SIGSEGV), incorrect ways of launching an app (like launching a command-line app as a daemon) etc. ...
1 vote
1 answer
54 views
Allow all users to trigger a data sync to shared directory (groups vs dummy user?)
I have an Ubuntu server with ~6-7 users. We all use some software that requires some shared files and folders to be regularly updated. Let's call that shared directory /opt/science/online-data ...
0 votes
1 answer
618 views
Have Terminal command run on startup (on MacOS)
I want to have a command run on my computer on startup, without me having to login. I want to do this because I want to have a program running all the time on my computer without me needing to login ...
1 vote
1 answer
85 views
What is "p-portal" I saw in System Monitor in Linux on several occasions?
Looking at the following screen shot from System Monitor in Ubuntu 18.04.4 LTS (Linux 4.15.0-1079-oem), you see "(p-portal)" in the process list: I should have interrogated systemctl, ps ...
0 votes
2 answers
89 views
When to useradd
I'm writing a daemon in C which needs to do some things as a separate user from root. I will call this user "testuser". My program is installed by its makefile. My question is thus, when ...
3 votes
1 answer
1k views
How to keep a script running persistently in background
Currently I launch my UDP BitTorrent tracker using the command ./target/release/aquatic_udp -c "aquatic-udp-config.toml" the app shuts down when I close the console. What is the preferred ...
1 vote
2 answers
727 views
systemd to control a daemon written in python
I have acquired a python script that is invoked at the command line and immediately returns having demonised and two processes have spawned. Unsure why two but one is the parent of the other. I wish ...
1 vote
1 answer
4k views
Popup cannot be interacted with: "Daemons using outdated libraries" "Which services should be restarted?"
The pop-up "Daemons using outdated libraries" "Which services should be restarted?" breaks my scripts as it cannot be interacted with, requiring me to interrupt. It happens when I ...
-1 votes
1 answer
909 views
Here is how to add support for Brave browser in profile-sync-daemon
Profile-sync-daemon can be installed in Debian based systems with sudo apt install profile-sync-daemon and in Arch based systems with sudo pacman -S profile-sync-daemon, but it lacks native support ...
0 votes
0 answers
175 views
Can't start TOR as a daemon on FreeBSD
I'm trying to understand why TOR does not start as a service on my FreeBSD 13.2. This is the error message that I see during the boot : [notice] Tor 0.4.8.9 running on FreeBSD with Libevent 2.1.12- ...
1 vote
0 answers
131 views
Cant get Python program to work as service
I am trying to run a rather simple python program on startup and making it restart by itself. Python program working fine from terminal. Service just gives me a failed Message. sudo systemctl status ...
0 votes
0 answers
55 views
Forking from a systemd service [duplicate]
I have a python program that runs as a systemd user service. From that program, I launch external commands via subprocess.Popen(cmd, close_fds=True, start_new_session=True). My intention is for these ...
0 votes
1 answer
308 views
How can I stop a script from writing it's output to daemon.log?
I have a unit file that calls a script (myscript.sh), passing it a "start" command. The script parses what is passed to it and if it's a start command, it runs a jar using this line: java -...
1 vote
0 answers
218 views
How can daemons source environment variables on a machine without persistent storage
I'm working on a Yocto Project build of an AARCH64 system, where I need the monit daemon (or at least a process started by monit) to access an environment variable I'm setting. It's my understanding ...
-4 votes
1 answer
208 views
How can run skype in background?
The latest way to install skype is with snap. sudo snap install skype Reboot,it can be started automatically and run in background daemon way.We can enable or disable its automatical startup in ...