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
1 vote
1 answer
70 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
0 votes
1 answer
88 views

Brave Browser - Support for profile-sync-daemon

Profile-sync-daemon lacks native support for Brave Browser and therefore an extra configuration step is needed. This extra step is in Github page Add Brave Browser/Files Changed but it is hard to find ...
H2onvety's user avatar
  • 111
0 votes
0 answers
17 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,731
0 votes
0 answers
52 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
  • 521
1 vote
0 answers
49 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
51 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
88 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
84 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
103 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
  • 285
0 votes
0 answers
76 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
23 views

systemd throws an error

I'm doing VPS hosting via the telegram bot systemd here's the code in the bot.service file [Unit] Description=Roflbaza After=syslog.target After=network.target [Service] Type=simple User=root ...
Абоба's user avatar
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
783 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
302 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
416 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
171 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
697 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
0 votes
0 answers
44 views

Is there any way for supervisord to reload only a single program configuration?

Supervisord looks nice at first glance, and I'm already used to it the way I get used to any tool after a while even if it is suboptimal. But I'm getting more and more annoyed with one situation: I ...
q.undertow's user avatar
1 vote
1 answer
98 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
884 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
0 votes
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
737 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
1k 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
77 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
952 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
  • 491
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
503 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
508 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
0 answers
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
424 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
  • 1,844
0 votes
0 answers
1k 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
131 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,015
0 votes
1 answer
247 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
109 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
7k 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
  • 307
1 vote
1 answer
387 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
  • 879
-1 votes
1 answer
52 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
719 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
463 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
687 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
  • 591
1 vote
1 answer
8k 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
26 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
48 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
0 votes
1 answer
188 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&...
Logan Lee's user avatar
  • 249
0 votes
0 answers
140 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=$! ...
Logan Lee's user avatar
  • 249
0 votes
1 answer
347 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 ...
Oussema's user avatar
  • 101
1 vote
0 answers
228 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 ...
SofaKng's user avatar
  • 313
3 votes
1 answer
878 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 ...
Alexey Lebed''s user avatar

1
2 3 4 5
9