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

learn more… | top users | synonyms

0
votes
1answer
12 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 ...
0
votes
0answers
5 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 ...
1
vote
0answers
14 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
11 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
7 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
26 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
60 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
33 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
24 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
34 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
36 views

Difference between ps process httpd and deamon process httpd

When I'm running command ps aux | grep httpd , it shows that httpd is in running state , but on running systemctl status httpd - its inactive and disabled. Why is it so?
1
vote
1answer
122 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
44 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
34 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
29 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
31 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 ...
1
vote
1answer
32 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 ...
0
votes
0answers
83 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): ...
1
vote
0answers
11 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
51 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 ...
1
vote
1answer
106 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
37 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 ...
1
vote
0answers
150 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 ...
0
votes
1answer
107 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 ...
1
vote
1answer
45 views

service stop doesn't run the exit/cleanup part

This is a sleeping service, import time bufsize = 0 f = open("/home/user/sleep-log", "w", bufsize) try: f.write("going for a deep sleep......") time.sleep( 1000000000) except: import traceback; ...
1
vote
1answer
290 views

Execute sh with parameters in bash

Hello I am newbie in bash and I am coding a daemon to execute a service. The syntax is ./ctlscript.sh start. When I execute service openproject start it should run this command, but it runs ...
2
votes
2answers
73 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: ...
4
votes
1answer
304 views

The file /usr/libexec/mysqld does not exist or is not executable

Whenever I try to start MySQL via the command service mysqld start I get the following error: MySQL Daemon failed to start. Starting mysqld: [FAILED] ...
1
vote
1answer
355 views

service start: HOSTNAME: command not found

Whenever i try to start a daemon service with the service name start I get the following error: /etc/sysconfig/network: line 3: HOSTNAME: command not found MySQL Daemon failed to start. Starting ...
1
vote
1answer
103 views

Is there a common naming convention for daemon user accounts?

I'm from a windows background where I'm used to creating separate domain service accounts for running various services. I like to keep things need so I would name them DOMAIN\service.whatever I'm ...
-1
votes
1answer
298 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 ...
2
votes
1answer
170 views

Cron Job to Keep Daemon Running?

let us suppose I have a cron job like this: */15 * * * * /path/to/thedaemon The daemon (it being a python daemon via from daemon import runner) will not allow multiple instances of itself, which in ...
3
votes
3answers
2k 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 ...
0
votes
1answer
69 views

Path to unix socket

I'm using p0f to fingerprint network OSs from traffic captures. p0f has a feature allowing it to be set up as a daemon and listen in the background for a connection from a p0f-client (ie: ...
0
votes
1answer
124 views

systemd daemon & python getting the wrong time

I made a daemon that it is started by systemd, and inside my daemon I have a python function to get the time. The problem is that the time is wrong, I have 8 hours of difference. This is my service ...
9
votes
3answers
2k views

Is it a good practice to run a daemon under a non-root user account?

I've developed an application that uses NTP to change the network time, to sync two of my computers. It runs as root, since only the latter is allowed to change the time and date on Linux(I guess). ...
1
vote
0answers
513 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
1answer
55 views

Running daemon as regular application

There are tools that enable one to run a console command or a console application as a daemon. To "daemonize" it, so to say. Is there a way to run a daemon as a regular console application? I'm ...
4
votes
1answer
44 views

Monitoring ARP Poisoning

How to monitor ARP poisoning? These few days my internal website that can be accessed locally has weird image replacing every images on the site for few seconds (it got back to normal after ...
3
votes
1answer
42 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 ...
2
votes
2answers
191 views

How can I start a file-processing daemon? [closed]

How can I run a script-based tool which will process files continuously downloaded to given directory as they arrive? I'd like to minimize delay (~1 second is OK), script can have own infinite loop. ...
1
vote
0answers
161 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
1answer
441 views

Pass SNMP trap packet to a php daemon on Ubuntu

I have a Ubuntu server which is collecting incoming SNMP traps. Currently these traps are handled and logged using a PHP script. file /etc/snmp/snmptrapd.conf traphandle default ...
1
vote
0answers
70 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
2answers
70 views

How to keep a process from running?

I can kill a process. But how do I keep that process from being called up again without removing it from Linux? For example, if I run something like netstat to find the port associated with the ...
0
votes
1answer
97 views

Turn on bluetooth on login screen

Is it possible to have bluetooth turned on and use a bluetooth keyboard when at the login screen? So far I only managed to start the bluetooth daemon when logged in. I added it to systemd with ...
3
votes
1answer
103 views

Is there a way to make nice (process priority) values survive a reboot?

I've been working on setting my Pi up as a seedbox, which I have no finally got working. My issue is that I also use this Pi as a mumble server and NAS for my media in home. I'm quite comfortable with ...
0
votes
0answers
64 views

Starting Daemons in specified order

I would like to load some custom daemons I have made in a certain order. One daemon starts xflux and one starts the x server. Is it possible to make the xflux daemon run only after the startx daemon? ...
0
votes
1answer
939 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 ...
1
vote
1answer
186 views

CKB Arch - Daemon run on startup

I have a Corsair K65 RGB Keyboard. To start it working, I had to clone https://github.com/ccMSC/ckb , compile and run the [clonedir]/ckb/bin/ckb-daemon . Every time I boot, I have to pull out my old ...