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 ...
0
votes
0answers
23 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/...
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 ...
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 ...
2
votes
1answer
114 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/...
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/...
-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?
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
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
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 ...
0
votes
2answers
66 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 ...
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. ...
1
vote
2answers
36 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
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
143 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 ...
2
votes
1answer
509 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
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 ...
1
vote
2answers
599 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 ...
1
vote
1answer
163 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 ‘‘...
-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. ...
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=...
0
votes
1answer
147 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
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 ...
0
votes
1answer
76 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
174 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 ...
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 ...
0
votes
0answers
34 views

start-stop-deamon not stopping instntly after start

I made a script A to start script B as daemon. I can see it starts the script B correct, but script B stops almost instantly. I confirmed that script B itself is working fine, so it's not the case. ...
0
votes
0answers
74 views

init.d script : how to stop all process tree with start-stop-daemon

I made an init.d script that don't stop properly the service i run I need help doing this please : start() { echo "Starting Server" rm -f $LOGFILE start-stop-daemon --start --background --...
1
vote
1answer
826 views

Why we use setsid() while daemonizing a process?

IN order to create a service(daemon) we fork the parent and make it to exit while making the child to be the session leader by calling setsid(). Moreover why do we use setsid()?Our orphan process is ...
0
votes
1answer
63 views

FTP server to start when changing runlevel 2 to 5

I've been searching for this a little while now: How do I, when I change from runlevel 2 to runlevel 5, start f.e. proftpd? When I go back to runlevel 2, the service should be stopped again. So - ...
0
votes
0answers
115 views

irexec not starting at boot - LIRC

This code is in a shell script that starts up on boot /usr/bin/irexec /root/.lircrc -d The other sections in the startup script work, so the script runs ok. When the command is executed manually ...
2
votes
1answer
57 views

Strange behavior of 'ps -o pgid'

Intro: I have a daemon, which spawn processes and I have to stop it all gracefully. The solution I found on web based on pgid: group_id=$(ps -o pgid= $(cat $pidfile)) if [ ! -z $group_id ]; then ...
2
votes
1answer
47 views

The Safest Way to Deploy a Daemon via Jenkins

I'm developing a system service in Java, and for the deployment I would like to do the following: Copy over the new Initd from the build Stop the service being deployed Overwrite/copy the new JAR/...
1
vote
1answer
117 views

Security - Runing Daemon, program as root or user vs sudo su

I have some questions about Linux security: Running a process as root is a big mistake (root has too much power + a program get too much permissions in the system). I always ran processes as a user (...
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
0answers
12 views

Definitions arguments of daemon and server

Somehow, I feel clear about definitions of daemon and server after learn a little bit about X11. So, I would like to have verification to my definitions as below. Daemon is a process that is not ...
1
vote
1answer
120 views

How to integrate daemon scripts with sensu?

I have some daemon scripts that run in an infinite loop that do some action if a detected node has failed. For example; in AWS to move an Elastic IP. How can I integrate this script that runs in an ...
2
votes
1answer
265 views

NFS + SFTP on the same directory - are there any pitfalls?

I currently have an SFTP (actually vsftpd) server I use for regular archives. The OS is Centos 7.0. While I used to use SFTP, I still could benefit from having an NFS connection to this server (rw). ...
2
votes
1answer
64 views

Defer some daemon startups until after disk idle at boot

Background: I have a laptop running Debian testing/unstable and booting with systemd. It's got a normal laptop magnetic hard drive (not an SSD). The machine is set to auto-login when turned on, so it ...