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
1
vote
1 answer

Debian package with init.d without autostart

I'm trying to create a package which contains the init.d file, but doesn't try to start the daemon right after the installation. Currently, I'm using scripts created from the dh_make template. Right after installation, dpkg wants to start the…
viraptor
  • 1,296
  • 6
  • 21
  • 41
1
vote
1 answer

Trying to setup a PHP daemon using System_Daemon and I'm having issues getting it to run

I get the following error when trying to start a daemon using Ubuntu 10.04 and the PHP5: PHP Warning: PHP Startup: Unable to load dynamic library 'usr/lib/php5/20060613/pcntl.so' - /usr/lib/php5/20060613/pcntl.so: cannot open shared object file: No…
mike
  • 212
  • 3
  • 13
1
vote
5 answers

Writing a Linux Service

I would like to write a Linux service using PERL, but don't know how to do. (I know perl) I have a MySQL database, and need to check it for new records, so I can process them. The service should respond almost instantly, so cron is not a good choice…
deniz
1
vote
1 answer

What is the fastest method of getting a small amount of data from whitelisted servers?

I have a bunch of servers which build various different programs for various different systems. Once a build has completed, it gets archived into a single file and compressed, then an md5sum is created of the file. One server might build multiple…
Ben Holness
  • 944
  • 2
  • 10
  • 28
1
vote
0 answers

Postfix doesn't run in macOS Ventura

I have just updated my Mac to macOS Ventura. When I try to start postfix, it says "$daemon_directory/master -t 2> /dev/null postfix/postfix-script: fatal: the Postfix mail system is already running". However with ps -ef | grep --color postfix I can…
Noah Wu
  • 11
  • 1
1
vote
3 answers

How to monitor memory usage continuously with Linux?

I have a daemon service application runing a Ubuntu server(20.04.1). The total phisical memory is 2G, and the swap space is 4G. Sometime my service was killed by OS quietly, eventhough I add OOMScoreAdjust=-1000 into my systemd service descripting…
Leon
  • 169
  • 9
1
vote
1 answer

Setting up Auto-restarting php daemon

I have a php script with an environment variable from Fuelphp that I run with a command like FUEL_ENV=production php oil run task however, I'd like it to run as a daemon that will automatically restart itself when it exits. The main reason it exists…
paullb
  • 185
  • 1
  • 9
1
vote
2 answers

screen inside systemd daemon on CentOS 8

So I want to run screen inside a systemd service so that I can give the process (inside the daemon) commands while it is running. See at the end of the question for examples of what I want be be able to do. What I currently have: A java application…
Rinkana
  • 11
  • 4
1
vote
0 answers

Retrieving the current PTP settings of an Ubuntu machine

I have an Ubuntu machine (18.04) with PTPd installed. I want to write a script that can determine what PTP settings have been set previously. Specifically, I want to find information on the master PTP server that this machine is locked to (if it is…
Eliezer Miron
  • 113
  • 1
  • 5
1
vote
0 answers

Lsyncd runs but does not update files

So I installed the daemon and configure it as : matias@~ $ cat /etc/lsyncd/lsyncd.conf.lua settings { logfile = "/var/log/lsyncd/lsyncd.log", statusFile = "/tmp/lsyncd.stat", statusInterval = 1, verbose =…
Matias Barrios
  • 213
  • 3
  • 12
0
votes
1 answer

How to start a daemon at boot time after all other services are ready

I have developed a daemon in Linux. It works correctly, however, when I set that script to be started at boot time, it has conflict with other service, so I need to start it after all services have started. How can I add a delay in the init.d shell…
jstuardo
  • 155
  • 1
  • 7
0
votes
1 answer

monit reload - how to know when it is finished?

I have this requirement to add services to monit dynamically. So what I am doing is copying the service monit file to /etc/monit.d/ (which is included in /etc/monitrc) and reloading monit. cp /etc/monit.d/ monit reload monit…
Soumen
  • 123
  • 1
  • 5
0
votes
0 answers

Running td-agent (fluentd) init.d script under Supervisor got (spawn error)

I have installed td-agent and they provide an init.d script that you can run it with, I have configured td-agent and I run it via the init.d script and it's running smoothly, but I want to move td-agent to be running under Supervisor, I have reread…
0
votes
0 answers

Trying to enable auditd but svcadm not in solaris 10

I am new to Solaris. environment: Solaris 10/ i386 Here's my problem: I want to enable auditd to start generating system auditing log file. (Like service aduitd start in CentOS.) And every guide I found is saying that it can be enabled by…
Kenting
  • 1
  • 1
0
votes
1 answer

passing labels parameter to daemon.json in Docker

I am trying to setup docker daemon on Centos 7. The goal is to pass parameters to the overriding script in systemd and keep everything in daemon.json that is much more readable and cleaner Default script…
fromthestone
  • 347
  • 4
  • 17