Stack Exchange Network

Stack Exchange network consists of 175 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.

-2
votes
1answer
40 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
24 views

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root?

How to list all services (daemons) on a Unix system that can be started by current user, but that will run as root? I'm studying cyber security and plays with capture-the-flag machines to enhance my ...
0
votes
0answers
35 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
51 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
18 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, ...
0
votes
1answer
50 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
29 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
37 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
40 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
44 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
29 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
55 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
56 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
32 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 ...
1
vote
1answer
75 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
51 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 ...
3
votes
0answers
551 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
73 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
81 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
164 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
44 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 ...
1
vote
1answer
133 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
119 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
21 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 ...
3
votes
2answers
516 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
63 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
1k 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
99 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
56 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
330 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
200 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
295 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
1k 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 -...
6
votes
2answers
3k 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
177 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
45 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
27 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
278 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
215 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
260 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
147 views

How to override systemd “Conflicts=” line

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 discovered that if you ...
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
117 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
151 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
195 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"...
1
vote
0answers
172 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
131 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
37 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
142 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 &. ...