Daemons provides an easy way to wrap existing ruby scripts (for example a self-written server) to be run as a daemon and to be controlled by simple start/stop/restart commands.
Questions tagged [daemons]
105 questions
2
votes
2 answers
PHP Daemon in PHP 5.3
While the idea of a PHP daemon has been covered to death on here, I haven't found anything specifically related to how to do this in PHP 5.3. As I've been told, 5.3 introduced new garbage collection/memory management to allow PHP to more cleanly run…

fiiv
- 1,267
- 1
- 8
- 16
2
votes
0 answers
support time namespace for ubuntu with systemd use
I have Ubuntu 21.04, and need to support systemd for minikube use.
For minikube support, which needs the systemd (also calls systemctl), I found a workaround solution for adding systemd deamon support in:
minikube for ubuntu
When trying running any…

Eitan
- 1,286
- 2
- 16
- 55
2
votes
2 answers
how to set a class as daemon with tomcat?
I'm new on the java universe, also new in the tomcat world. So, the issue is:
I need to run a java class as a daemon. This class should be able to comunicate with the tomcat requests.
In the past: when I did this in C, I executed the binary file as…

subzero
- 3,420
- 5
- 31
- 40
2
votes
1 answer
Ruby script can't open SQLite3 file, but only when running as a Daemon
I'm running a script (running on an AWS EC2 instance) that continually pulls state legislative data from an API, and persists it to a SQLite3 .db file. When I try to run the script as a daemon in the background, the process immediately stops and I'm…

FakeBenJay
- 41
- 2
2
votes
1 answer
How can I create a daemon with Thor (ruby)?
I would like to use the popular Thor gem to create a daemonized task. My Thor class looks like this:
require 'rubygems'
require 'daemons'
require 'thor'
class CLI < Thor
desc "start", "Startup the App"
method_option :daemonize, :aliases =>…

Mike Farmer
- 2,992
- 4
- 28
- 32
2
votes
2 answers
ValueError: Attempted relative import in non-package for running standalone scripts In Flask Web App
I have flask web app and its structure is as follows:
/app
/__init__.py
/wsgi.py
/app
/__init__.py
/views.py
/models.py
/method.py
/common.py
/db_client.py
/amqp_client.py
…

Aditi Sharma
- 303
- 2
- 14
2
votes
1 answer
Can stopping a daemon corrupt my data?
I'm using delayed_job to run some background processes on my rails app. These processes read and write to the DB as well as writing to a log file.
My question is - when I stop the jobs, does it kill the process (which can end up corrupting my data)…

Shay Friedman
- 4,808
- 5
- 35
- 51
2
votes
2 answers
Azure AD - Multi-Tenant with Daemon Service and Authorization Code Grant flow, can a target tenant generate a client_secret?
I am working with Azure AD through OAuth 2.0 protocol and also creating a Service/ Dameon application to handle the authentication process for Microsoft Graph SDK. For the service/daemon, I make a HttpWebRequest and pass along the client_id and…

jdave
- 845
- 2
- 11
- 27
2
votes
1 answer
do I need to restart ALL the hadoop daemons whenever I make changes to xml configuration files
Suppose my hadoop cluster is running and I make changes to hdfs-site.xml.
My question is which services/Daemons need to be restarted in this case?
Similarly which daemons need to be restarted if I make changes to yarn-site.xml, core-site.xml,…

Debiprasad Mishra
- 111
- 1
- 12
2
votes
2 answers
Ticker and Daemon on Golang
Is it possible to use Ticker to implemented the graceful termination of a long running daemon process? I read the other related thread on here that you should always close the channel to avoid memory leak, but if I run this in a daemon mode (let…

samxiao
- 2,587
- 5
- 38
- 59
2
votes
1 answer
Process.daemon vs. running a Ruby script with nohup + &
I have a Ruby 1.9 script that I want to run as a long-running background process.
It looks like I have a choice between calling Process.daemon inside the script to daemonize it, or I can just run the script in the background using a shell's…

dan
- 43,914
- 47
- 153
- 254
2
votes
1 answer
How do I set options for logging output in ruby gem Daemons?
I am using Daemons 1.1.9. I am not able to get the daemons logging to a log file. My daemons control file is as follows:
require 'rubygems'
require 'daemons'
@options = {
:dir_mode => :script,
:dir => 'pids',
:multiple => false,
…

pitachip
- 965
- 3
- 7
- 24
2
votes
0 answers
Starting and stopping a daemon containing kernel threads
I want to run a c++ program that is using POSIX threads on openSUSE 12 as a daemon, and be able start, stop and restart it as a service with a normal init.d script based on this template: http://www.novell.com/coolsolutions/feature/15380.html.
It…

Johan Lundquist
- 571
- 1
- 5
- 8
2
votes
3 answers
Which Toolkit to develop Mac OSX/Windows Daemon service
I need to develop a daemon service which also has presence in System Tray. The system tray icon allows users to customize/access some options through right click menu. It might open a window as well manage those options in a better way.
The app…

adivis
- 638
- 5
- 12
2
votes
0 answers
Daemonizing Mailman app
Starting my mailman app by running rails runner lib/daemons/mailman_server.rb works fine.
When starting with my daemon script and command bundle exec rails runner script/daemon run mailman_server.rb, the script generates an…

w2bro
- 1,016
- 1
- 11
- 36