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

learn more… | top users | synonyms

1
vote
1answer
28 views

Command ran as wrong user on boot while explicitly being told to run as root

So I've installed Syncthing and I'm running in a lot of problems getting this program to run as root on boot. For some reason it always runs as the default user ( thom ), but I boot into root and tell ...
3
votes
2answers
51 views

Should a well-behaved daemon daemonize itself? [on hold]

In this answer, it is mentioned in passing that it is not appropriate for a daemon process to reparent itself to init with the double-fork-and-exit trick. The answer links to a website which is no ...
3
votes
3answers
124 views

How to duplicate a daemon?

I want to run two instances of dnscrypt client proxies, but I'm having trouble making them automatically start at boot. Here is what I tried: In rc.local, this is the first: /usr/local/sbin/dnscrypt-...
0
votes
0answers
21 views

Install custom init.d service on debian7?

please help me. Stupid question, but I look at the syntax and do not really understand how to correct it. The point: do a service for python3 http server. The command must be executed so. cd /var/www/...
4
votes
3answers
6k views

How to start SSH daemon on boot on Linux Mint Debian v2

I'm using Linux Mint Debian v2, 64-bit. I noticed recently that my ssh daemon does not start automatically on boot. It used to. I'm not sure if it had to do with my UFW configuration or sshd_config ...
1
vote
0answers
26 views

How to manage users' orphaned processes?

I have a service that executes users' scripts which in turn spawn more processes. Some of those processes stop on external conditions that might not take place. Since the the parent is gone (e.g. may ...
0
votes
0answers
55 views

service doesn't work

Background I am using this script in order to make my script running as service. I am using Linux Mint 17.3 Rosa. The problem Sometimes the start/stop works sometimes not. Sometimes, I have to ...
3
votes
1answer
35 views

De-daemonizing an existing service

I have an existing service, which I'm not able to modify directly—let's say it's closed source, or too complex to edit, or autoupdates and therefore is not a good target for direct modifications. I ...
21
votes
7answers
55k views

Ubuntu12.04: How to disable a daemon process at startup

I normally use service start/stop or initctl start/stop to start or stop a daemon process but now what I am looking for is to disable a daemon process from starting at startup example mysqld. ...
0
votes
0answers
34 views

xbindkeys Eclipse hotkey not working from deamon

I have added xbindkeys to autostart using the gnome-tweak-tool. gnome-terminal is set to CTRL+ALT+T, which works perfectly. eclipsehowever is set to CTRL+ALTJ and only works when I shut down the ...
0
votes
0answers
25 views

How to find the subroutine associated with a particular daemon process

I have a daemon process running on my shell and I know its process ID and the location where it is running etc which i obtained by ps -ef command. I want to get the script of that particular process ...
3
votes
1answer
53 views

Why do we daemonize processes? [closed]

I've read and understood about how you create a daemon process, but from everything I read I never really understood why it needs to be done. I've read that we do the fork - setsid - fork to avoid ...
10
votes
3answers
1k views

What's the difference between udev and hald?

I'm just beginning to dive into the internals of Linux, and I was wondering what the difference is between udev and the hal daemon. From what I gather, both seem to be responsible for managing hot ...
2
votes
1answer
111 views

How to run gunicorn as systemd daemon

I use arch linux , I try to prepare gunicorn daemon to connect to nginx. But still I get errors ● gunicorn_yogavidya.service - Yogavidya gunicorn daemon Loaded: loaded (/usr/lib/systemd/system/...
-1
votes
2answers
78 views

Does the Ubuntu Linux 16.04 daemon function execute a double fork? [closed]

Does the Ubuntu Linux 16.04 daemon function execute a double fork? If so, why is a double fork necessary?
2
votes
1answer
36 views

Why is SIGHUP ignored by daemon(3) only in FreeBSD?

As part of the systemd tmux daemon() discussion on reddit, I've noticed that it's only the FreeBSD version of daemon() libc library call that ignores SIGHUP sigaction(2), but not OpenBSD or glibc/misc/...
2
votes
1answer
3k views

I stopped MiniSSDPD, will something bad happen?

I have been trying to harden my Debian system by stopping and disabling the 20 or so unnecessary services listening by default. One of them is called "minissdpd". Apparently this provides "discovery" ...
0
votes
0answers
68 views

Create a background process using execle with Ubuntu 16.04's daemon function

Here is an example of the usage of Ubuntu Linux 16.04 C/C++ daemon() function: #include <unistd.h> #include <stdio.h> int main() { daemon(1, 0); while (89) printf("Lol\n"); } ...
1
vote
0answers
22 views

CPU usage investigation and managing daemons

I am not sure, if this question belongs here or to software recommendation, but as it is strictly tied to linux kernel and is probably build-in, so I will risk and ask here (please move it if I am ...
0
votes
1answer
49 views

rc.local can't launch my program (raspbian linux)

I have a c++ program that is running perfectly fine if I run it by executing, sudo /Morreels/./launcher Sadly the same line (without sudo) won't work in the rc.local file on startup... When trying ...
2
votes
1answer
170 views

Node.js server with daemontools is constantly restarted

I want to run a Node.js server with daemontools on Debian (Jessie) but my script running under supervise is constantly restarted. This is the run script that I'm using (/etc/service/node/run): #!/bin/...
1
vote
2answers
35 views

Is there a retry count setting for svscan?

I'm supervising a script with svscan which may run into errors and stuck there. When the script dies svscan restarts it right away but dies immediately. So it keeps restarting it. I don't seem to find ...
0
votes
1answer
27 views

Git Daemon not using specified base-path

I have the following configuration in /etc/xinetd.d/git # description: The git server offers access to git repositories service git { disable = no type = UNLISTED ...
0
votes
2answers
64 views

Daemon to: receive messages -> run background command -> manage number of tasks running simulatenously?

Looking for a unix program that runs in the background (daemon), that: can receive arbitrary (JSON) messages. On receiving a message, run a specified command. Has option for limiting number of ...
12
votes
1answer
5k views

What is the difference between start-stop-daemon and running with &?

I am setting up a service in /etc/init.d. I am looking at various scripts in there, some are implemented with start-stop-daemon ... and some with /path/to/script &. All of them save the pid in a ...
0
votes
1answer
61 views

netcat daemon for calling functions in sh script

I'm new to shell programming and I have created a script that opens a connection to a server of mine. I want to have this script listen for an input from a client node and use that to run a function. ...
7
votes
1answer
5k views

unable to restart networking daemon

When I type sudo service networking restart, I am getting error as shown below: edward@computer:~$ sudo service networking restart stop: Job failed while stopping start: Job is already running: ...
1
vote
2answers
580 views

Daemonize a process in shell?

http://linuxg.net/how-to-transform-a-process-into-a-daemon-in-linux-unix/ gives an example of daemonizing a process in bash: $ nohup firefox& &> /dev/null If I am corrrect, the command ...
6
votes
1answer
3k views

How to specify daemon dependency upon another daemon

in /etc/init.d/ first daemon # Provides: first # Required-Start: $remote_fs $syslog second daemon # Provides: second # Required-Start: $remote_fs $syslog first Is this ...
3
votes
2answers
731 views

Running a command at startup

I recently came across "remind" in Linux. I liked it almost immediately, but for my reminders to pop up, I needed to run 'remind' in daemon mode. Done quite simply using the following command: remind ...
0
votes
0answers
14 views

referencing init script from custom location for Running it as a linux daemon

I am installing a software in a RedHat or SUSE Linux system. The whole software belongs to a specific user. From my basic knowledge on linux systems for installing any script as a linux daemon you ...
4
votes
0answers
48 views

Problems demonizing Java process on Debian

I'm trying to turn Serviio into a service on Debian, to enable it to start at boot and to be controlled with the service command line utility. I have a dedicated user, serviio, to run the daemon. I ...
1
vote
1answer
141 views

How to create an orphan process without terminating the parent shell?

In a bash shell, to make nohup mycommand & an orphan process, I close the bash shell after running the command. Is it possible to do without terminating the parent shell? I would like to know if ...
0
votes
0answers
51 views

Ways to make a process survive its parent shell's exiting?

In order for a process to survive its parent shell's exiting, what necessary and sufficient conditions does the process need to meet? Specifically considering signals, what signals should be ...
1
vote
0answers
23 views

Querying X from a daemon [closed]

I'd like to be able to query the local X server and get the idle time of the machine. This would be run from a daemon that wants to act as soon as the user has been idle for long enough. Right now we ...
2
votes
1answer
500 views

Why does systemd prints “Looping too fast” and what to do?

I'm running a server (VPS) with Debian 8.3 (jessie) and systemd manages different processes. The load of the system is below 1, but it uses nearly all memory and some share of swap space. When I try ...
0
votes
0answers
49 views

Have I created a daemon successfuly?

In gnome terminal under Ubuntu 14.04 In a tab, I run $ nohup sleep 1000 & &>/dev/null I took note of its pid 20643. Then in another tab, I check the sleep process: $ ps -p 20643 -o ...
1
vote
1answer
161 views

Are kernel threads processes and daemons?

From Mauerer's Linux Kernel Architecture, Kernel threads are processes started directly by the kernel itself. They delegate a kernel function to a separate process and execute it there in ‘‘...
0
votes
1answer
146 views

Create aMule daemon systemd .service file

I recently moved to Raspbian Jessie on my RPi and now I'd like to move all my services from init.d to systemd. aMule daemon it is now working with init.d but I want to move the script to a amule-...
-1
votes
1answer
11 views

Centos 5 X86 64 Daemon for shell script [duplicate]

I have made a shell script to run a server for a game I like. I need the server to run when I close putty. Right now putty is the console, but I need it to not close when I close the program down. ...
1
vote
2answers
3k views

Get transmission web interface working with web server

I have my working on default port and I want to be able to use the web interface with an URL like http://my.domain/torrents. I tried adding a location and a proxy conf to Nginx but it fail to work ...
0
votes
1answer
35 views

Start radio with systemd service

On a headless RaspberryPi, I would like to automatically start radio on boot, without any human action. I have written this file as /etc/systemd/system/radio.service : [Unit] Description=Radio Wants=...
1
vote
0answers
24 views

Create a daemon to be started with XServer [closed]

I am working in Ubuntu 14.04. I need to create a daemon that will start when XServer is launched and waits for certain commands from another daemon after display manager is up. Up on receiving the ...
3
votes
1answer
41 views

How to recognize a state of idleness for a given period in a script?

I would like to write a simple script that should work as a daemon. The only thing this daemon has to do, is to check if for a given period neither a key has been hit, nor a mouse moved, nor a ...
0
votes
1answer
74 views

Defeat rabbitmq-server dpkg autostart

I need rabbitmq-server installed on Ubuntu. Rabbitmq-server tries to start itself on install, and on many dpkg and apt-get commands thereafter. (Having it run on install is intentional, according to ...
0
votes
0answers
18 views

Init script for syndaemon not functioning as expected

The Disable Touchpad while Typing option in my Linux Mint's settings do not work how I want. So, I use syndaemon. I saved an executable containing the options I want, syndaemon -d -i 0.5 -K. When I ...
1
vote
1answer
66 views

is there a tool/daemon that automatically fills /etc/ethers in the background to have a proper wake on lan hostname:mac database when needed?

is there a tool/daemon available that automatically fills /etc/ethers in the background with the proper hostname:mac pairs to have a up to date database when needed with for example wake on lan (wol) ?...
2
votes
1answer
61 views

Is it possible to have a daemon run a process as another user WITHOUT having a superuser daemon?

I'm working on a project at the moment where I have a daemon that needs to run a process as another user. I would like the daemon to not run as root if possible. However, i'm struggling to figure out ...
2
votes
1answer
173 views

Why is a reboot necessary for HAVEGED to start?

Today, I installed havaged to my Arch Linux System (rolling release, systemd). # systemctl start haveged is supposed to start the daemon but that just wouldn't work. This is what the log had to ...
26
votes
11answers
41k views

How to run Dropbox daemon in background?

I'm using Debian 6 and Dropbox. I followed these commands to install it. When I run ~/.dropbox-dist/dropboxd — Dropbox works and stuff. Problem is that when I close terminal or, even worse, — reboot.....