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
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
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 ...
4
votes
1answer
55 views

How to distinguish if a systemd unit is run by apt-get or during boot?

Can one somehow distinguish if, a) the daemon was started during boot or, b) (re)started by an apt-get install or upgrade? Can this be distinguished from within the daemon itself? The use case is ...
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 ...
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 ...
2
votes
1answer
127 views

How to specify a daemon shutdown command with upstart?

In an upstart configuration how do I define what command should be used to shutdown a server. Lets say I have daemon that has two seperate processes. startup.sh - to start the server shutdown.sh -...
2
votes
1answer
607 views

How to log processes in daemon-mode?

I would like to save the standard output of the program motion in a text file. If I don't use motion in daemon-mode I would simply do it by: motion > log.txt But what is the equivalent when I ...
1
vote
1answer
116 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 (...
1
vote
1answer
659 views

Possible to pass env vars into chpst without envdir?

I use runit to daemonize my web application, and I'm trying to see if I can have my process managed by sv not have to have a corresponding envdir for its environment variables. I wonder if I can just ...
1
vote
1answer
151 views

Jar on Raspberry Pi not responding after a long time

Hello I made a java program with friend that is designed to run 24/7 as a personal assistant on a headless Raspberry Pi. It basically can be used as an alarm and to tell us the weather or news etc. So ...
1
vote
1answer
606 views

Kill wifi connection

I am trying to debug my wifi which does not work so I want to stop wpa_suppliciant and apply the -d option If I first kill -9 <pid> Then ps -A | grep wpa returns a new pid I am on ...
1
vote
1answer
132 views

Lock a script starting daemons

I'm run a script with cron: */10 * * * * flock -n /tmp/lock script I have to make sure that only one instance of the script is running at the same time, and for that I'm using flock. The problem is ...
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
145 views

How do I make a python daemon run at bootup?

I am writing a Python program that will act as a custom converter for a hardware application for me on the raspberry pi. I have written python code to act as a daemon, but how do I go about making it ...
0
votes
1answer
2k views

lsb - log_daemon_msg echoes messages in shell console!

#!/bin/sh . /lib/lsb/init-functions log_daemon_msg "this is a daemon s message" On the shell console, it prints, this is a daemon s message A daemon process doesn't have stdout at all. So why ...
0
votes
1answer
299 views

Running smsd gnokii on boot

I can successfully run smsd but I could not run it on boot. I tried using rc.local and @reboot cronjob but none of the two worked. Does anyone tried to successfully run the script on boot?
-1
votes
1answer
442 views

inittab respawn and rc.local

At the moment I have a daemon starting at boot using rc.local by the following line. su -l user -c '/dir/daemon' but I would like to start this process as a service with respawn. I found out that ...
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 ...
3
votes
0answers
187 views

IMAP caching proxy for sharing connections

I'm trying to find an IMAP proxy in which multiple clients will share a single connection to the same server. The reason for this is because most mail providers only allow a limited number of IMAP ...
2
votes
0answers
201 views

How do I process the output of obexpushd?

I am using obexpushd to accept files from paired bluetooth devices. I need to extract the MAC addresses from the output of obexpushd to find out which file has been sent by which device. This ...
2
votes
0answers
119 views

Configuring jackd (JACK daemon) with ALSA

I'm trying to wrap my head around ALSA config files and jackd, but I'm not getting anywhere, other than crashing my machine. The microphone is a USB type and specified in ALSA arecord as -D plughw:1,...
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 ...
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 ...
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
0answers
204 views

Daemonize a perl script at startup Linux

I have a custom version of CENTOS that I need to run a perl script as a daemon in at all times. To do this I want to get it to run on startup as a daemon. When the machine is on I can daemonize the ...
1
vote
0answers
842 views

“avahi-daemon[1540]: server.c: Packet too short or invalid while reading response record. (Maybe a UTF-8 problem?)”

We are developing an application in Java for our internal project. Apache-Tomcat-7.0.57 is running on a Linux machine (Red Hat 4.4.6-4). But it throws an error avahi-daemon[1540]: server.c: Packet ...
1
vote
0answers
222 views

NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting

host map: lookup ( ): deferred It is the log info in mailq. NOQUEUE: SYSERR(root): opendaemonsocket: daemon MTA: server SMTP socket wedged: exiting It is the log at /etc/log/maillog I use ...
1
vote
0answers
91 views

Simple automount USB devices with fstab: is it normal behaviour?

I notice that adding this in /etc/fstab: /dev/sdb1 /media vfat nofail 0 0 will automount any SD card of my USB SD reader, and even auto-remount if I remove the card, and insert a new ...
1
vote
0answers
28 views

execute command on pointer movement, wait and revert?

I've got two pointing devices (touchpad and trackpoint) and the goal is to execute a command when movement (any direction, any distance) is detected on the trackpoint, then wait a configurable amount ...
1
vote
0answers
202 views

MongoDB “service” on clean Redhat can not be started

I just bring up Redhat 6.5 64-bit from AWS and did the below things: Disabled SELinux Disabled Iptables All ports opened in Security Group Rebooted Then i just followed, both of the below ...
1
vote
0answers
71 views

Multiple daemons init script

I have two daemons currently running on my development server (OpenSUSE 12). There are two daemon that work together as a whole and must start together and die together. Is there a standard way to ...
1
vote
0answers
971 views

Debian init.d with a working C++ daemon, unexpected results

I am fairly new to programming for Linux, and init.d scripts, and I have a problem with my init.d script adapted from an example I found via a lot of google searching. Instead of getting a status, ...
1
vote
0answers
126 views

Cygwin DenyHosts daemon-control file: no such file or directory error

I have been trying to figure out this error and searched everywhere with no luck. I have installed DenyHosts on Cygwin and also the DenyHosts daemon but when I try to start the daemon by typing: ...
1
vote
0answers
2k views

start_daemon fails with exit code 7

I have a daemon called mydaemon.bin and a shell script called start-my-daemon.sh that sets some environment variables and then starts mydaemon.bin, which in turn calls the unix function daemon to ...
1
vote
0answers
351 views

How to setup a simple email daemon with autorespond and mail forwarding?

Since my mail provider unfortunately offers neither an autoresponder nor forwarding mail to others during vacancy, I'd like to setup e.g. a RaspberryPi to regularly check my mail account (via POP3 or ...
1
vote
0answers
306 views

Upstart: How to respond to startup of a service, thats not part of Upstart?

I'm running Ubuntu server and playing around with Upstart. I have installed PostgreSQL database server which doesn't use Upstart system, however im also writting an Upstart script that starts another ...
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/...
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 ...
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 ...
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"); } ...
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 ...
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 ...
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 ...
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 ...
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
73 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 --...
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 ...
0
votes
0answers
989 views

/var/run/dbus/system_bus_socket: No such file or directory

I've been using Linux systems for years now and wanted to try Kali Linux as my next. I've been using Backtrack before as well and never experienced errors. However, I just installed Kali and boot up ...