A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

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
0answers
18 views

Daemon to detect application startup and renice

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 (...
1
vote
1answer
58 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....
2
votes
1answer
33 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 ...
0
votes
0answers
29 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 ...
1
vote
1answer
31 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 ...
1
vote
1answer
59 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 ...
0
votes
1answer
58 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 ...
2
votes
1answer
22 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 ...
0
votes
1answer
40 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 ...
1
vote
1answer
27 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 ...
0
votes
1answer
37 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 ...
0
votes
0answers
57 views

systemd: forking process immediately calls execStop

Been looking around here and can't find a similar problem. I don't usually do systems stuff, but am sort of the most qualified/available person to do it while a colleague is out. I've set this up as a ...
0
votes
0answers
56 views

Start daemon with udev on Busybox

I have a USB device that contains a modem (a long with a few other cans of worms). The modem (an u-blox LARA) enumerates as /dev/ttyACM[1-6] on this embedded Linux (Yocto) box. This box has Busybox ...
0
votes
0answers
12 views

rsyslogd missing message?

I set up a logging host in the ryslogd config using python, restart daemon etc and get a correct message: Sep 20 09:03:20 Desk-r6 CLI[13845]: (admin) (root) (192.168.1.10) startup : Success Code to ...
0
votes
2answers
898 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-...
-1
votes
1answer
59 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"...
1
vote
2answers
527 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 ...
1
vote
1answer
71 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, ...
0
votes
1answer
44 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 ...
0
votes
0answers
72 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 ...
0
votes
0answers
18 views

Should systemd service unit's have different names than daemon usernames

I often executed the following command and have always thought in my head "give me the logs for user httpd". journalct -uhttpd Wait a second. I don't have a user httpd, only apache. And upon ...
-2
votes
1answer
43 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.
0
votes
0answers
39 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 ...
3
votes
1answer
58 views

Is there a way to optimize my daemon?

I wrote this shell script, which changes my video and sound output to hdmi as soon as my monitor is connected. I activate it via systemd. #!/bin/bash intern=eDP1 extern=DP1 while true; do if ...
0
votes
0answers
22 views

Are there notification calls when a Process exits?

I was thinking about making a tool that triggers some kind of callback once a Process exits, particularly in the case where it's daemon/long-running process. The idea is to listen for that event, ...
1
vote
1answer
106 views

Verify cron daemon is enabled in Slackware 14.2

How will I know if cron daemon is running in my Slackware installation? I tried the code below and it returns me nothing. It means cron is not in /etc/rc.d folder. ls /etc/rc*.d | grep crond
1
vote
1answer
58 views

Slackware 14.2 - Turn on the auditd daemon

I want to turn on / enable the auditd daemon to record system events in Slackware 14.2. I could not see the daemon auditd, when I run the code below: ls /etc/rc*.d | grep "auditd" It means it was ...
0
votes
2answers
77 views

Apache default page shows but Apache not found

In my raspberry pi when I go to http://localhost/ I see a Apache2 debian default page, So I went to /var/www/html/index.html and changed the source code to see if there were any changes in the ...
0
votes
1answer
53 views

What happens to the output of a service?

When I run a service from a terminal it shows many logs/errors/successes in output. But if I run it with same command options as a service (under systemd on Debian Linux) it does not show any terminal ...
-2
votes
1answer
49 views

Does `inetd` (and `nc`) apply only to programs written as daemons?

When inetd makes several programs run as services, does inetd require the programs necessarily written as daemons (e.g. not having a controlling terminal, no interactive input, ...)? Or caninetd ...
0
votes
1answer
36 views

finding a way to wait for an unknown named file to appear in a directory and then doing something with it

I have a dir called /media/simc/, I want to to set something up to monitor /media/simc/, and when a file is put in it (from this machine or any other on the network, it is a network mounted dir itself)...
1
vote
0answers
76 views

SAMBA/MiniDLNA: Use RAM as working/Cache Directory?

As a follow-up to this question: I want to reduce High I/O Load on Raspberry Pi when streaming with MiniDLNA from an SSHFS/NFS Share. At 'iotop' I could see MiniDLNA/Samba uses over 99% Disk I/O ...
1
vote
1answer
127 views

Mount SSHFS to tmpfs/Memory/MiniDLNA just write to RAM

to reduce the I/O on my low end Raspberry Pi, I want to set my SSHFS/NFS to be mounted in RAM. MiniDLNA then will stream it to my Network. As I can see in IOtop, Minidlna uses 99% of IO usage, and I ...
0
votes
1answer
55 views

Control docker daemon

I had observe on the same OS (ubuntu 16.04), different machines, that if I run sudo systemctl status docker, then I have different results concerning the location of docker.service, more exactly on ...
2
votes
1answer
509 views

Where to put daemon files?

I wrote a couple daemons communicating over Unix domain sockets (raw sockets) and now I want to find the most suitable location for them on the production server. Where to put which files? Here's ...
3
votes
0answers
1k views

Failed to get properties: No such interface '' in Ubuntu 16.04.3 LTS

I Created this Unit file tdk-api.service in the /etc/systemd/system folder with this permissions: -rwxr-xr-x with this content: [Unit] Description = tdk API daemon [Service] Type = simple ExecStart ...
-6
votes
1answer
167 views

Can a X client (or a process running a GUI program) be a daemon?

Regarding what process is a daemon, https://unix.stackexchange.com/a/175396/674 says The big problem here comes when your system runs a graphical environment. Since GUI programs (i.e. Chromium) are ...
-3
votes
2answers
84 views

Is there a daemon which is not a server? [closed]

It seems that a server is not necessarily running as a daemon, e.g. X server. If I am not correct, please let me know. Is a daemon necessarily a server? Is there a daemon which is not a server? I ...
0
votes
1answer
379 views

Why is the X server process not a daemon?

root 717 2.0 3.2 1038344 263604 tty7 Rsl+ /usr/lib/xorg/Xorg -core :0 -seat seat0 -auth /var/run/lightdm/root/:0 -nolisten tcp vt7 -novtswitch Is it correct that the X server process is running ...
0
votes
3answers
59 views

Is telinit run as a daemon?

In sysvinit, telinit is a symlink to init. init is run as a daemon. Is telinit run as a daemon? I don't have sysvinit installed on my Lubuntu. For comparison, systemctl plays similar role to ...
0
votes
1answer
334 views

Can we find out server/daemon and client processes from each other on the same machine?

On Ubuntu, I often run some server/daemon and some clients both locally. The server/daemon and clients can be arbitrary programs (emacs daemon and clients, Screen daemon and clients, server and ...
1
vote
1answer
145 views

What are necessary users used for

I want to know which users are necessary for an Unix/Linux system. Now I found a doc which told me that there were three necessary users: root, bin and daemon. For the user bin and the user daemon, I ...
1
vote
1answer
28 views

Starting application before firewire device is ready

To use an audio application requiring jackd-firewire, I have to start up things in the following order: Power up the hardware interface (a Phonic mixing console in my case) Start jackd Start the ...
4
votes
2answers
1k views

Can systemd handle double-fork daemons?

Can systemd handle double-fork daemons ? I previously used init.d/ script to manage daemons I wrote which have worked flawless for years. Now I find myself needing to provide a systemd/ script for ...
1
vote
1answer
91 views

Running and managing two daemons with same executable by rc together

I use FreeBSD UNIX and its rc system of startup scripts to make my Node.js servers start at reboot as a daemon and start, as a daemon again, and stop them with some commands the system gives me after ...
0
votes
1answer
2k views

Debian start-stop-daemon equivalent in CentOS

I have a bash script that is written in a debian-based distribution (System-V) and I want to run it under CentOS 7. There is a part of the script that runs a command as a daemon like this: start-stop-...
2
votes
1answer
238 views

find command of nobody runs on every fresh boot in the morning - debian stretch

Folks, find executed by nobody runs automatically on every fresh boot (in the morning when I boot the system). I guess it is to do with updatedb. How can I confirm my assumption and stop this from ...
1
vote
1answer
137 views

How to make dhcpd recognize a new interface without restart

I'm working on automatizated virtualization but currently i'm stuck with setting up the DHCP server. The problem is, every time i create a virtual machine, i have to restart the daemon to register the ...
1
vote
0answers
659 views

Creating a service in Alpine Linux to run Java application

I would like to deploy a spring boot application into a docker container. I had created the base image using Alpine Linux. My old configuration runs a service on Red Hat under this path /etc/systemd/...
1
vote
1answer
383 views

Daemon vs worker and when to use what?

(Note that, below, I am frequently using term "daemon or worker" just to indicate that I dont know which word to use as I dont know the exact difference between them in the context explained below.) ...