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
21 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. ...
0
votes
1answer
13 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
12 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 ...
3
votes
0answers
24 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
67 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
39 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
1answer
66 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
43 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
20 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 ...
0
votes
2answers
141 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
56 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
10 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
21 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
1answer
81 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
18 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
38 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
15 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
42 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
116 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
44 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
26 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
50 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
59 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
362 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
55 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
77 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
44 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
41 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
75 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
121 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
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
79 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
179 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
50 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
178 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
123 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
61 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
427 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
101 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
427 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
490 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
135 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
366 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
259 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 ...
4
votes
3answers
4k 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
92 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
157 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
699 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 ...