Skip to main content

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
2 answers
36 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 ...
spinosarus123's user avatar
0 votes
0 answers
10 views

How do I test to see if the Nix daemon is running and accepting requests?

(I'm asking here about the Nix package manager, not NixOS.) What code (in Bash, or similar) can I run to see if the Nix daemon is running and able to accept requests from the current user? Ideally ...
cjs's user avatar
  • 698
0 votes
0 answers
27 views

Can an HTTP Request work with RSYNC?

So I know RSYNC daemon which negates the usage of SSH in order to send or receive files. However, I'm seeing there's some HTTP GET traffic along with a web-scanning user agent over port 873 to these ...
Linuxnoob's user avatar
0 votes
0 answers
51 views

Debian 12.5 - can't create user - "User ID is not unique/already in use"

I tried to install Eaton Intelligent Power Protector onto a Proxmox 6.5.11-8 machine (based on 12.5 Debian without desktop environment). Installation failed as the installer could not install the ...
derhottevomdorf's user avatar
0 votes
0 answers
23 views

What user do service units/daemons belong to? [duplicate]

I have been reading about systemd and the Linux boot process. I'm confused on what user the system services that get started belong to. Do they belong to root? Or something else?
FourierFlux's user avatar
3 votes
1 answer
235 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 ...
skarz's user avatar
  • 131
1 vote
2 answers
101 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 ...
r.l.'s user avatar
  • 81
1 vote
1 answer
1k 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 ...
BigMistake's user avatar
-1 votes
1 answer
260 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 ...
H2onvety's user avatar
  • 109
0 votes
0 answers
39 views

How to start openvpn without any daemonization and log redirection?

I want effectively a debug modus, i.e. I do not want openvpn to fork I want all output in the stdout/stderr and nothing in various logs. How can I do that? I could stop forking with a --daemon=0, ...
peterh's user avatar
  • 9,828
0 votes
0 answers
77 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- ...
Marietto's user avatar
  • 549
1 vote
0 answers
64 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 ...
Sebastian Bätz's user avatar
0 votes
0 answers
52 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 ...
czert's user avatar
  • 1
0 votes
1 answer
121 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 -...
Bob_From_IT's user avatar
1 vote
0 answers
124 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 ...
Patrick M's user avatar
-5 votes
1 answer
124 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 ...
showkey's user avatar
  • 395
0 votes
0 answers
98 views

How can I force linux to limit the amount of time I play "games" on it per day, that would be protected from root override?

Problem: Struggling with video game addiction. https://www.reddit.com/r/Steam/comments/v0wj7i/is_there_a_way_to_limit_gaming_time/ Virtually no existing ways to limit gaming, outside therapy. I need ...
Anon's user avatar
  • 215
0 votes
0 answers
2k views

Failed to start tomcat.service after install Tomcat9 by YUM

I installed tomcat9 on my EC2 server using commands sudo su yum install tomcat9 Then I tried running the command: /usr/sbin/tomcat9 start Then the error message is: Failed to start tomcat.service: ...
quangkid's user avatar
  • 101
2 votes
2 answers
1k views

How to run multiple `socat` and forwarding both TCP and UDP traffic?

I want to forward Microsoft Remote Desktop on a Linux Server, assume that the remote Windows host is 192.168.1.100, I want to run: socat TCP4-LISTEN:3389,fork TCP4:192.168.1.100:3389 socat UDP4-LISTEN:...
ricky9w's user avatar
  • 21
2 votes
1 answer
443 views

daemon reload resets cgroup.subtree_control of cgroups

I created a cgroup named mycgroup using mkdir /sys/fs/cgroup/mycgroup. Before executing echo +cpu > /sys/fs/cgroup/cgroup.subtree_control: [root@host ~]# cat /sys/fs/cgroup/mycgroup/cpu.max cat: /...
jay's user avatar
  • 31
1 vote
1 answer
712 views

systemd service file to run a script at the time of shutdown is running at startup instead

I am new to writing these service files and I have written a systemd service file by following several blogs in stack and unix overflows. I have a script which needs to run at the time of shutdown and ...
Ruhan Sharief's user avatar
1 vote
1 answer
266 views

notify-send: send notification from script running as root [duplicate]

In my desktop environment, I am using dunst as notification daemon, and I can send notification as: notify-send "some message" I have a terminal window open, where I am logged in as root, ...
Martin Vegter's user avatar
1 vote
1 answer
1k views

snapd service keeps disabling itself

I'm trying to install snapd using snap sudo snap install snapd, but i get the following error. error: cannot communicate with server: Post "http://localhost/v2/snaps/snapd": dial unix /run/...
brekker's user avatar
  • 83
1 vote
1 answer
116 views

Getting the exit code of an application launched via startx

I'm setting up Debian so that it works in kiosk mode. To do this, I created a service that performs the watchdog function: [Unit] Description=Watchdog for myapp [email protected] After=...
George Tuzikov's user avatar
0 votes
0 answers
1k views

Running a simple command at startup in Fedora 37 using Systemd?

I simply want to execute a single command during startup, before any user logs in. (More precisely, I want to run a setkeycodes command to fix a quirk of my laptop's keyboard, so that it works ...
Thomas.M's user avatar
  • 131
1 vote
4 answers
3k views

How to install and run docker with nix

I'm using Debian on WSL. Nix is already install. I install docker with this command: nix-env -iA nixpkgs.docker I want to start the daemon : systemctl start docker Failed to connect to bus: No such ...
Pierre-olivier Gendraud's user avatar
3 votes
3 answers
931 views

sshd: add AllowUsers for current session, without editing sshd_config

I want to grant root access temporarily from ip 1.2.3.4, just for the current session (until next sshd or server restart) I could add this to sshd_config, and then remember to remove it: AllowUsers ...
Martin Vegter's user avatar
0 votes
1 answer
2k views

Systemd service fails to start Python project

I am trying to make a project written on Python work on a server. I created the following service file: [Unit] Description=My bot service After=multi-user.target [Service] Type=simple Restart=always ...
apazent's user avatar
  • 21
0 votes
0 answers
78 views

finger daemon / nc fowarding error

For an assignment I'm trying to properly send a buffer overflow exploit with ncat in order gain root access on a vulnerable machine set up by the professor. I feel I created my egg right but I keep ...
Jacob ricondo's user avatar
1 vote
0 answers
1k 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/...
Ashar's user avatar
  • 511
17 votes
1 answer
5k 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) ...
Alex's user avatar
  • 351
0 votes
1 answer
580 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 ...
Bashir Abdelwahed's user avatar
2 votes
1 answer
3k 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 ...
mohsen.sh's user avatar
1 vote
1 answer
666 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/...
linux user's user avatar
1 vote
1 answer
1k 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 ...
Time-Bandit's user avatar
0 votes
1 answer
448 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 ...
Porcupine's user avatar
  • 2,056
0 votes
0 answers
2k 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
138 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 ...
Duke Dougal's user avatar
  • 1,065
0 votes
1 answer
269 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 ...
NewLinux's user avatar
  • 147
1 vote
1 answer
113 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 ...
Welite's user avatar
  • 125
12 votes
3 answers
8k 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?
lipo's user avatar
  • 317
1 vote
1 answer
499 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 ...
Bram's user avatar
  • 899
-1 votes
1 answer
57 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 ...
Dhaneesh lal.D.R's user avatar
-3 votes
1 answer
784 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: ...
8c6b5df0d16ade6c's user avatar
2 votes
2 answers
524 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.
Gregg Leventhal's user avatar
0 votes
2 answers
763 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 ...
Rohit Nishad's user avatar
4 votes
3 answers
5k 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 ...
techsk8's user avatar
  • 621
1 vote
1 answer
9k 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 ...
hancack's user avatar
  • 11
0 votes
0 answers
29 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?
Arthur Yakovlev's user avatar
0 votes
0 answers
51 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&...
Logan Lee's user avatar
  • 249

1
2 3 4 5
9