Questions tagged [daemon]

On linux an unix-like systems is demon the designation of processes running in the background and providing certain services. Direct user intaractions with demons are not intended.

280 questions
68
votes
11 answers

Disable a service from starting at all runlevels?

I have a service foo which currently starts at runlevel 3 and above. How can I stop it from doing so, without using update-rc.d foo stop 3 ., which (if I understand it correctly) would turn off the service at each runlevel change. (ie., if I was at…
lfaraone
  • 1,581
  • 2
  • 17
  • 22
67
votes
4 answers

What is the difference between syslog, rsyslog and syslog-ng?

I am a bit confused in syslog, rsyslog and syslog-ng. From where can I get the source code for syslog()? Is there any difference between rsyslog and rsyslogd?
StackUser
  • 803
  • 1
  • 7
  • 7
64
votes
2 answers

Create a directory under /var/run at boot

I had a daemon that needed its own dir in /var/run for its PID file with write permission granted to the daemon's user. I found I could create this dir with these commands: # mkdir /var/run/mydaemon Then I could change its ownership to the…
user24601
  • 873
  • 1
  • 6
  • 8
49
votes
4 answers

Start N processes with one systemd service file

I found this systemd service file to start autossh to keep up a ssh tunnel: https://gist.github.com/thomasfr/9707568 [Unit] Description=Keeps a tunnel to 'remote.example.com' open After=network.target [Service] User=autossh # -p [PORT] # -l…
guettli
  • 3,113
  • 14
  • 59
  • 110
46
votes
4 answers

Configuring Systemd Service to run with root access

I have a service in the form of a node.js application set up with Systemd on Raspbian Jessie and it is using its own user account. However, I am finding that the service does not run correctly because it does not have the necessary permissions. One…
Luke
  • 507
  • 1
  • 5
  • 11
38
votes
7 answers

How to automatically start supervisord on Linux (Ubuntu)

Supervisord does not come with an init script or does not indicate how to get it started automatically, ie. after a reboot. I've tried some user-contributed /etc/init.d scripts, but they all fail. What would be the preferred solution ?
sebastien
38
votes
4 answers

Authentication is required to manage system services or units.

I have a strange issue whenever trying to stop/start a daemon as a regular user, it asks to authenticate with the credentials of another regular user - for example: [bob@server ~]$ systemctl stop some-daemon.service ==== AUTHENTICATING FOR…
Jack O'Leary
  • 483
  • 1
  • 4
  • 4
37
votes
6 answers

How to stop nginx on Mac OS X

I've installed and configured nginx server on my Mac from MacPorts sudo port install nginx Followed the recommendation from the port installation console and created the launchd startup item for nginx, then started the server. Renamed…
Alex Kaushovik
  • 543
  • 1
  • 4
  • 10
34
votes
4 answers

public key authentication fails ONLY when sshd is daemon

I have no clue on how this happens. The distro is Scientific Linux 6.1 and everything is set up to perform authentication via public key. Yet, when sshd is running as a daemon (service sshd start), it doesn't accept public keys. (To obtain this…
user666412
  • 443
  • 1
  • 4
  • 7
23
votes
5 answers

console-kit-daemon - can it be stopped?

I have 60 instances of Console Kit daemon on Ubuntu 9.04 server installation. Is it safe to kill those or stop these processes. They seem to be taking about 20% of RAM each(see on htop).
rampr
  • 448
  • 1
  • 4
  • 10
18
votes
3 answers

Is there a "standard" way to make daemon in Debian?

I need to create a daemon from the application in Debian. Is there any standard tool for this in Debian like "upstart" in Ubuntu? I need only start-stop commands, to start a program as a daemon with some options and a pid file and kill it with pid…
Kuroki Kaze
  • 345
  • 2
  • 5
  • 18
17
votes
7 answers

Too many open files on Debian

I have long running process at Debian. At some point in throw an error: Too many open files. Running: ulimit -a shows: open files (-n) 1024 I wish to increase number of open files in 2 times. After execution ulimit -n…
FoxyBOA
  • 417
  • 1
  • 6
  • 12
16
votes
5 answers

Standard or best way to keep alive process started by init.d

I'm looking for a standard way or best practice to keep a daemon started by an init.d shell script alive. Or even better, is there a way to keep it alive directly from /etc/init.d? Specifically, I have a daemon called dtnd with and infinite loop…
Adrian Antunez
  • 473
  • 1
  • 5
  • 10
15
votes
4 answers

Create daemon on ubuntu 16.04

I developed a crawler in PHP that parse an URL with specific headers and put all URLs of content in the queue. It works fine. I developed this code in a ubuntu 14.04 and I put a .conf file in /etc/init folder with this content: # Info description…
13
votes
2 answers

Does NTP daemon set the host timezone?

If I am using NTP daemon or ntpdate command, do I need to worry about changing the timezone? Should I re-configure the timezone using cron job to guarantee the accuracy of the server time? I am using ubuntu server.
Khaled
  • 35,688
  • 8
  • 69
  • 98
1
2 3
18 19