Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [daemon]

Computer program that runs as a background process, rather than being under the direct control of an interactive user.

1
vote
0answers
33 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
25 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
20 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 ...
0
votes
0answers
32 views

Systemd output to external file [closed]

I have a master.config file which runs through supervisor, But I want to use systemd to create daemon of that configuration and eliminate supervisor. master.config [program:master] ; Point the ...
0
votes
1answer
42 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 ...
0
votes
0answers
10 views

How to stop anonsurf from starting when system starts up

I am using anonsurf package to be able to visit some websites that are filtered by my ISP. My problem is that although I don't need anonsurf to be enabled for everyday use, it starts at the system ...
2
votes
0answers
68 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
55 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
67 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
66 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
32 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
0answers
15 views

Choosing a tool for two-way syncing folders over internet on CentOS [duplicate]

I'm looking for a tool which can sync files and folders over internet on CentOS 7. It better run as a daemon in real-time or short delay when files/ folders changes. I need to sync multiple folders. I ...
0
votes
0answers
20 views

Is there a daemon that would reboot node on freeze?

So my RPi alike Linux node freezes into an Uninterruptible sleep or from a user stand point dies till manual power off/on. I wonder if there is a daemon that would reboot node on such freezing ...
1
vote
1answer
75 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 ...
0
votes
1answer
95 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
17 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 ...
0
votes
0answers
26 views

Passing Input parameters to the Daemon Process

I have a shell script which reads input from Terminal. I would like to run this script as a daemon process. I have read and understood about making a script to a daemon process where we would create a ...
0
votes
0answers
9 views

Re-login makes processes leave jobs list although they keep running after logged out

Using freebsd-version 11.2-RELEASE-p4. I am exploring the operation system, nowadays processes and daemons. I have learned some about bg, fg, ampersand, jobs, and rc scripting. My question is: What ...
1
vote
2answers
139 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
45 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
401 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-...
1
vote
1answer
60 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
38 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
189 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
92 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.) ...
0
votes
1answer
168 views

Is there a difference between running a program as a daemon and using nohup with & to run the program?

I'm trying to run my program as a daemon but the way I am doing it currently requires root access. I was wondering if I could use the nohup command with & to push it to the background instead of ...
1
vote
1answer
649 views

NVIDIA Persistence Daemon stop job running for 5 minutes every time I shut down or restart PC

I've got Ubuntu 18.04, and every time I go to restart or shut down my computer, it takes forever. I pressed escape to see why, and there's a message every time saying "A stop job is running for ...
1
vote
0answers
19 views

Regulating user-daemons from listening on unprivileged ports (preventing server spoofing)?

If I have a port >1024 but that I want to reserve to one executable how can I ensure that no other executable can open and listen to a socket on that port? /usr/bin/foo_srv -p 8080 /usr/bin/bar_srv -...
1
vote
2answers
1k views

Which PID belongs into the systemd PIDFile section when creating a shell script daemon?

I've created a shell script daemon, based on the code of this answer. I've written a systemd service file with the following contents: [Unit] Description=My Daemon After=network.target [Service] ...
0
votes
0answers
115 views

yocto linux systemd daemon

I have an embedded device running a linux image built with Yocto. Also I have an application running on this system. I want to make daemon script for this application, so that it should start at boot, ...
1
vote
2answers
42 views

Identify and remove noisy software [closed]

When I open up my session, my laptop speakers start whining. This does not happen when I use the guest user session. The noise stops when there is CPU activity (for eg. moving mouse, starting program,...
0
votes
1answer
20 views

Non-logging REST API: How can I write all HTTP(s) requests and responses to a file?

I have a daemon, call it whatverd, running on TCP port 11111. It is basically an http server, but it does not do any kind of logging or debugging. It only returns query results via JSON in the http(s) ...
0
votes
0answers
221 views

Running dot net application as daemon

I have been trying to run a simple dot net application as a daemon. I took a help from many of the below given links and did as suggested. Links: http://pmcgrath.net/running-a-simple-dotnet-core-...
0
votes
1answer
137 views

using fifo for daemons

While studying from Richard Stevens' book Unix network programming, I came across the following lines that speak about using FIFO between a client and a server. Client processes are started and ...
1
vote
1answer
172 views

In bash, a process group is a job if and only if …?

Here are two cases when a process group in an interactive shell isn't a job of the shell: $ sleep 100 & [1] 16081 $ jobs [1]+ Running sleep 100 & $ disown %1 $ jobs $ and $ ...
0
votes
1answer
91 views

How to override systemd “Conflicts=” line

OK, so here's the deal. When I need to enter a non-graphical environment, I tend to use TTY1. However, I'm also starting to use SDDM as my greeter, which uses TTY1, making it unavailable for use. I've ...
14
votes
3answers
1k views

Why would I chroot for sandboxing for security if my application can from the beginning run at a lower level?

I am writing an HTTP server daemon in C (there are reasons why), managing it with systemd unit file. I am rewriting an application designed 20 years ago, around 1995. And the system they use is that ...
1
vote
1answer
60 views

Why does a daemon have no associated terminal?

I'm a bit riddled by the convention in creation of linux daemons. People mostly agree that what makes a daemon is no associated terminal. Also, in sample codes usually the processe's parent gets ...
2
votes
1answer
69 views

How to listen to a daemon output?

I have a daemon that prints some information on to the terminal. I can see these informations by typing: systemctl status bot.service, this is working well, but this command doesn't listen to the new ...
2
votes
0answers
135 views

How to view daemon stdout in openrc?

How do I find stdout of a process in openrc? Here's how I created my daemon. /etc/init.d/mydaemon #!/sbin/openrc-run command="python3" command_args="/srv/http/tornado.py" command_background="yes"...
0
votes
0answers
137 views

Cannot execute dotnet app as daemon service

I'm trying to run my dotnet application as a daemon service, the first steps that I did are: Created the application using NetCore 2.0 Build the binary using dotnet publish swp inside Ubuntu ...
0
votes
0answers
88 views

Dependency graph for daemons

One of the practice problems I'm trying to solve asked me to "Draw a dependency graph that shows which daemons must be started before other daemons on your Linux system." In trying to complete this, ...
0
votes
1answer
34 views

Running a custom daemon on start up

I've got a small project that's based around a raspberry pi. A central part of this project is for my program to be executed on start-up and run until shutdown, all while running stand-alone (that ...
0
votes
1answer
94 views

How do user-created daemons get caught by the systemd user instance?

When using a systemd user instance (systemd --user), every user-created daemons are owned by this instance. For example: Let's create a daemon: nohup sleep 100 0<&- &>/dev/null &. ...
0
votes
1answer
52 views

Reading daemon logs for wlan0

I have a Raspberry Pi device which runs on Raspbain Linux. The device performs well on wlan0 but from the last few days, it became offline (disconnected from the network). I thought of looking into ...
3
votes
2answers
867 views

What's the difference between consolekit and elogind?

ConsloeKit is the traditional mechanism for tracking user sessions on Linux. eLogind has similar functionality, but is based on systemd and "independentized". What are the differences in their ...
1
vote
1answer
204 views

Autostart/restart program simply with daemontools in debian 9

For example make vlc start and play a video full screen on boot. After working this out here it is:
3
votes
0answers
189 views

Does fork & exit make a process a daemon?

int main() { if (!fork()) sleep(3000); exit(0); } Invoking the program above from the shell yields a orphan process which is adopted by init or upstart (on my Ubuntu Desktop) is in the same ...
2
votes
0answers
126 views

Detached process still dies with parent [duplicate]

I am trying to detach a process completely from a bash script, and then kill the bash script with Ctrl+C and have the detached process keep running. My code currently looks like this: nohup ${SHELL} -...
0
votes
2answers
426 views

Why no such non-interactive version of bashrc?

From what I understanding, a daemon is a background process, but daemon requires unique config file to set the environment variable. E.g. Hadoop daemon require hadoop-env.sh to set environment ...