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
0answers
41 views

Essential tasks of a routing daemon in Linux [closed]

What I have understood so far from some software router projects already there (e.g. bird), there are some essential subtasks for routing in Linux. Task 1: Get a routing table first (using ip route ...
0
votes
0answers
33 views

nfsd fails to start: modprobe: FATAL: Could not load /lib/modules/2.6.18-238.1.1.el5/modules.dep: No such file or directory

Before asking, here are some system specs: [root@SERVER ~]# cat /etc/*release **##############CARS build log for cars20-rhel-x86_64############## Date: Mon Feb 28 20:06:05 PST 2011 Builder: ...
0
votes
1answer
33 views

What program constantly reads e-mails and could execute actions under certain conditions?

I need a program that would be running as a daemon, connecting to mail server and reading inbox of a specified e-mail address (provided with password, of course =) ). If certain conditions are met, ...
2
votes
1answer
306 views

start-stop-daemon not working as expected, no pid file was written

I'm trying to control a python based program (which doesn't detach itself from console) #!/bin/bash user=nobody pid=/var/run/xx.pid name=xx prog=/xx.py case $1 in start) ...
0
votes
0answers
34 views

Execute snippet of code when key is pressed [duplicate]

I want to create a process in Linux which waits for some particular keys to be pressed and executes a snippet of code and goes back to sleep. How can I achieve this? Initially a process will be in ...
1
vote
0answers
24 views

daemon causes problem to the device [closed]

Currently I am working on one hardware device and we are calling it as a Unit (there are about 100 units). This Unit is built on Ubuntu 12.04. There is one daemon called dispaly_msg which is used ...
4
votes
4answers
373 views

Run command when temperature exceeds threshold, without daemon

I need to run a specific command if my laptop gets too hot (for example, send a STOP signal to Firefox or Virtualbox in order to prevent my laptop from shutting down violently and damaging my hard ...
-1
votes
2answers
112 views

Start the script with sudo not working [closed]

I am trying to start the virtual machine (ORACLE VIRTUALBOX) using this script (script name: start_vm001.sh). START_VM=`/usr/bin/VBoxHeadless --startvm testvm001` EXECUTE_VM=`exec ...
3
votes
1answer
93 views

fail2ban permission denied on script

I've just upgraded from RHEL 5 to 6.5 and setup fail2ban anew. I can't seem to get my custom action to work now, supposedly because of a permission issue. I wan't to know what am I doing wrong, and ...
1
vote
1answer
113 views

Setting up init.d service daemon priority (with or without monit)

Does anyone know how to change the process priority with monit? I want a high one. Monit config file for my service so far: check process RPiQuadroServer pidfile /var/run/RPiQuadroServer.pid ...
2
votes
2answers
42 views

How to add new elements to PATH for daemons (or other best practices)?

I want to add some scripts for custom administrative work to a Linux server (Ubuntu 12.04). Ultimately those scripts are callback scripts from at least one daemon (PostgreSQL in my case but that ...
1
vote
1answer
49 views

Daemons fall into what category?

Above system call, there are library routines, utilities and applications. Do daemons fall into any of these categories or they have their own category?
0
votes
2answers
64 views

Why programs often fail to run when started by `daemon`?

I do daemon -f -i ./some_gui_program - it starts. I do daemon -i ./some_gui_program - nothing visible happens. Why I can't start GUI programs detached on Linux this way? What's the use of daemon's ...
1
vote
1answer
205 views

Configuring anonymous rsync daemon

EDIT: I have since found that by using a folder in the root directory, things get a bit further - I can list the subfiles. So it really looks like permissions on the folder are the issue. I'm not ...
2
votes
2answers
53 views

Let users create their own daemons

How do I let server's users create their own daemons? They should auto-start on boot and otherwise behave just like regular daemons but with lower privileges overall. I remember I saw a tool that ...
1
vote
2answers
272 views

Writing own daemon. systemd error: Failed to read PID from file: Invalid argument

I'm trying to write own daemon a la very simple MPD (it's operating systems laboratory work). I made it work: it starts like a daemon (output of ps): 1 14877 14877 14877 ? -1 Ss 0 ...
0
votes
1answer
43 views

Can't terminate PHP daemon process

I've started a PHP daemon process via SSH with php ./my-script.php --daemon Now I want to quit this process, but I can't. It's still active in the foreground of my shell and I've hit CTRL + C ...
1
vote
0answers
280 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
1answer
764 views

Can I safely disable abrtd on CentOS 6?

There is this nice new daemon called abrtd running on CentOS6. This was inherited from upstream RHEL6. There this can be used (for instance) to automatically generate service-requests. In an ...
4
votes
1answer
143 views

How come each program or service has an account of its own in /etc/passwd?

I checked out the /etc/passwd file and I'm surprised to see that there are 35 different accounts, even though I'm the only user on this computer. I see that the accounts have names like mail, news, ...
1
vote
1answer
298 views

Daemon - how to tell the start daemon to execute this daemon as different username then root?

I have this startup script, when i launch i have the execution done by username: root, instead of username: sun. How can i tell the start_daemon to execute it as username : sun not root? $ ps aux | ...
0
votes
0answers
26 views

Run Sys V Init daemon as certain user?

When I installed dansguardian from the repos a long time ago, it set itself up such that in iptablesI could refer to it as --uid-owner dansguardian, which allows me to allow/deny it access to certain ...
3
votes
1answer
57 views

Can systemd do some setup before forking as a user?

Having written several small daemons or web applications for my personal use, I like to manage them using systemd (I am using Arch Linux, if that matters). So I write service files like the one below: ...
6
votes
1answer
145 views

How do daemons work?

If a user wants to execute a command, he has to first log in into a system. But some users in the system have /bin/false or /sbin/nologin set as a default shell in the /etc/password file. If I change ...
2
votes
0answers
64 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 ...
1
vote
0answers
56 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: ...
0
votes
2answers
128 views

What does this logrotate nginx config do?

In my /etc/logrotate.d/nginx I saw, /var/log/nginx/*.log { daily missingok rotate 52 compress delaycompress notifempty create 640 nginx adm ...
0
votes
1answer
46 views

Server running but not serving

I have a simple python flask server that is started by start-stop-daemon. It was running well last week, and this monday I see that it is not serving anymore (curl http://localhost/mypage takes ...
2
votes
0answers
51 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
1answer
130 views

Chrony 506 Cannot talk to daemon

I'm having trouble configuring chrony to sync the time between my raspberry pi and a desktop computer in an isolated network. My raspberry pi's chrony.config file looks like this: server master ...
2
votes
1answer
259 views

Difference between process in background and daemon [duplicate]

What is technically the difference of a process that started in foreground and was manually put into background and a daemon? Do they have different properties?
1
vote
1answer
162 views

Grep Wvdial output while it is running

I want to grep the output from wvdial while wvdial is running. Actually I want to fire a task when the modem is connected. I want to do this in the following way: grep string "IP address", if it is ...
6
votes
1answer
966 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 ...
1
vote
3answers
236 views

Is there any alternative to echo daemon to display ip?

Is there any alternative to echo daemon to display ip instead of given string? For ex: my ip = 80.1.2.3 server ip = 1.2.3.4 root@my-machine bash$ telnet 1.2.3.4 Trying 1.2.3.4... Connected to ...
2
votes
1answer
74 views

Is there a mechanism to run a “service” by a non-root user? [duplicate]

Is there a way I can have a continuously running, background process that can be controlled by me (a regular, non-root user)? All I need to be able to do is start, stop and restart the process. ...
1
vote
1answer
278 views

service vs. initctl in Ubuntu

Why are some deamons run out of service and some out of initctl in Ubuntu? Do both tools do the same thing and it is just a matter of personal preference of the user what they will use? E.g. sudo ...
3
votes
1answer
1k views

Where is my /etc/init.d/skeleton on OpenSuse 12.3?

On a fresh install of OpenSuse 12.3, I want to "daemonize" a program. And, on all examples found on Internet, I see I have to create first a /etc/init.d/myscript based on the /etc/init.d/skeleton... ...
3
votes
2answers
196 views

How to disable a daemon process on RHEL 6.3 like SMF does on Solaris

This problem has been bugging me for a while, we have a program running on Solaris, which managed as a service well by SMF, can be enabled/disabled very easily. Now, according to our market, we would ...
1
vote
2answers
51 views

Begin root process at boot?

I'd like to start a background process as root when my Linux install boots. Can I just add it to a directory or a configuration file?
2
votes
2answers
40 views

Find: who write backups

I have some daemon which writes Mongo and MySQL backups to the directory /opt/BACKUP, but I dont know - what kind of daemon, when it works and where i can find its settings? These files are in the ...
1
vote
1answer
201 views

Startscript: using $! to create pidfile - returning wrong pid (off by one) occasionally

We have 3 instances of redis running on a test server. For some reason, our start script which starts redis can write the wrong pid to a file. Here is what it's doing: su redis -c "redis-server ...
0
votes
0answers
98 views

update-rc.d with shairport v1.0-dev

I've just tried setting up shairport 1.0-dev on the raspberry pi running Raspbian “wheezy” and it works fine when started manually (music plays and is discoverable). I then tried to make it start on ...
3
votes
1answer
256 views

Idiomatic location for file based sockets on Debian systems

I am writing a daemon process for a Debian system in C that uses a Unix Domain Socket. If the deamon process's working directory is the root directory, is there an idiomatic directory to place the ...
2
votes
1answer
80 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 ...
1
vote
1answer
667 views

enable/disable NTP service on Ubuntu 12.04

Our application runs on Ubuntu 12.04 precise. On this server, we have both ntpdate and ntp. How to enable and disable ntp service on-demand? I tried sudo update-rc.d -f ntp remove/default and ...
1
vote
1answer
187 views

vmtoolsd doesn't end after logout

There is a process 'vmtoolsd' /usr/bin/vmtoolsd -n vmusr left when a user logs out. I have to type root password to shutdown or restart because of this. How to prevent this from happening? And what ...
4
votes
3answers
1k views

Use start-stop-daemon for a PHP server

I'm working on a socket server written in PHP. This part of the work is done but now I need to run it as a daemon. For this I've tried to use start-stop-daemon but it doesn't work. My server is ...
2
votes
2answers
527 views

daemonize rtorrent

Just read the man page, but found no option for this. Maybe I missed it, maybe it doesn't exist. I have a server at home I'm SSHing to for rtorrent, but the torrent stops downloading and won't restart ...
1
vote
1answer
863 views

adding a program on start-up by using LSBInitScripts

I use Debian Lenny (I know lenny is old and other bla bla) and would like to place a program on the start-up. I use update-rc.d by adding an executable file on /etc/init.d. By referring to ...
0
votes
1answer
392 views

Installing Debian without a DE [closed]

I'd like to replace Fedora with Debian testing on a laptop... However, I would like to not install any desktop environment along with Debian, and simply install Openbox once the base is there. I've ...