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.

286 questions
3
votes
2 answers

Restarting a Perl-script (socket daemon) from /etc/inittab

I run a small multiplayer card game with around 500 users at peak times: The client is in Flash and the server is in Perl. The Perl server binds to port 8080, i.e. only 1 instance of it can be started (important detail). The Perl server poll()s…
Alexander Farber
  • 714
  • 4
  • 17
  • 38
3
votes
1 answer

How to permanently "renice" a process on Mac OS X (or iOS, etc)?

I use a nice (free) process manager called ATMonitor for Mac OS X that has a lot of cool hidden features... one of which is being able to click on a running process.. and set the "renice" from +20 (less priority) to -20 (highest priority). The best…
mralexgray
  • 1,353
  • 3
  • 12
  • 29
3
votes
6 answers

Source code for Linux utilities and daemons

Where can I find the source code for Linux utilities and daemons. Basically I want to know the repository of source codes other than the Linux kernel.
LinuxPenseur
  • 443
  • 1
  • 6
  • 16
3
votes
2 answers

Deploy Jetty as port 80 daemon on Linux

I'm curious what techniques you Linux admin gods are using to manage your Jetty deployments. I come from a Windows Server background so I'm still getting used to all of this. I've been looking for a good solution for deploying Jetty instances as…
McKAMEY
  • 635
  • 1
  • 6
  • 14
3
votes
3 answers

Linux directory conventions for custom service

I'm writing a custom application that will be run as a service/daemon. According to convention, the binaries for it should be in /opt/appname. However, where do I put files such as: Config files Cache and storage Logs
Bart van Heukelom
  • 1,199
  • 6
  • 21
  • 41
3
votes
7 answers

Shell script to execute something when one of the daemon dies?

I just had to build two instances of daemon running on different ports. let's say they both serve critical missions for some applications. How can I do some automatic task (eg. shell script) execution for checking both of daemons when one of them…
racbear
  • 99
  • 2
  • 7
3
votes
4 answers

Recommendations for Monitoring services

I would like to install a monitoring services (Monit or others) on my web server and am looking for recommendation. I have no idea which is good, and what parameters which I should evaluate on, and which is a good for for my needs. Some which I saw…
shabda
  • 300
  • 1
  • 4
  • 10
3
votes
1 answer

Script in /etc/init.d won't run on startup (Ubuntu 8.10)

I'm on Ubuntu 8.10 The script runs when called from the command line with sudo /etc/init.d/xbindkeys start. Here's how it looks: #! /bin/sh PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin case "$1" in start) xbindkeys ;; …
ehsanul
  • 427
  • 1
  • 8
  • 19
3
votes
2 answers

How complex of a daemon should be run through inetd?

What is the general rule for which daemons should be started up through inetd? Currently, on my server, sshd, apache and sendmail are set up to run all the time, where simple *NIX services are set up to be started by inetd. I'm the only one who uses…
amphetamachine
  • 852
  • 1
  • 8
  • 14
3
votes
5 answers

Is there a simple way to daemon-ify a simple task?

I ssh into a server than start a job (for instance rsync), then I just want to be able to log out from the server and let the job run its course. But if I just do rsync ... & I think it's still connected to the tty in some way, and that the job dies…
Jonas Byström
  • 194
  • 2
  • 12
3
votes
2 answers

Linux - Run a daemon as 'nobody'

I have a daemon sitting in my root directory that currently is being run as root. However, since this program can read the file system, this is clearly a security problem. How can I run it as nobody so that I can resolve this problem? Doing "su -…
Chris Bunch
  • 999
  • 3
  • 14
  • 17
2
votes
3 answers

An easy way to see what in /etc/init.d/* is running?

I left my laptop cable at home, and I'm running on battery. I'm using Ubuntu Linux 9.10. I know about powertop and I'm using that. It told me that a few things I'd installed (postgres, mysql, etc) were running, so I stopped them. However is there a…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
2
votes
1 answer

How to start git-daemon at boot?

I've created scripts to control starting, stopping, etc. of my git-daemon on Fedora28. I'm now attempting to link these scripts to a systemd service so git-daemon will be available after reboot. The primary script (gitT) is... #!/bin/bash case "$1"…
dacracot
  • 469
  • 2
  • 13
  • 28
2
votes
0 answers

How to kill rsync daemon that keeps respawning

How do I kill these rsync daemons that keep respawning root@que2 ~ # ps aux | grep rsync root 9660 0.0 0.0 19928 2844 ? S 13:35 0:00 rsync -rlptD --progress --delete --exclude=server/files/* /home/.moto28/…
Vituvo
  • 337
  • 2
  • 5
  • 16
2
votes
1 answer

journalctl only refreshing after restarting systemd service?

I have a systemd service with gunicorn. I have a print statement in a function.Problem is that, journalctl does not show the print output when i call the function but it shows the output after refresing the systemd service unit. Should it behave…
r4v1
  • 121
  • 3