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
0
votes
1 answer
Heroku does pre load some specific gems?
Similar questions was asked on those links but the answer do not solve my problem.
why does heroku not list the same gems as i have locally?
Rails 3: Bundle Exec
I have the following Gemfile :
source 'http://rubygems.org'
gem 'rails'
gem 'daemons',…

ProxyGear
- 835
- 1
- 10
- 26
0
votes
0 answers
run a npx from plist of global daemons of mac os m1
this is what i want to run
its test on cypress that runs four times in a day to do something in another webpage for me
there is not possible to run npm or npx from plist to lauchdaemon or launchagents ?
#!/bin/bash
# Change working directory to…
0
votes
1 answer
Distributing Launch Agent and Application together for MAC OSX
I am trying to solve the following problem.
The application is aimed to provide customized backup for a phone connected through the USB. When the phone is connected to the system, the application should be launched.
I already wrote the components…

user926369
- 1
- 1
0
votes
1 answer
How to call sidekiq perform fuction after every five minutes in rails
require 'sidekiq'
module KYC
module VerifyInvestor
class AccreditedVerificationWorker
include Sidekiq::Worker
def perform()
....
end
end
end
end
0
votes
3 answers
How to run multiple ruby daemons and handle input and output of each daemon?
Here's the code:
while 1
input = gets
puts input
end
Here's what I want to do but I have no idea how to do it:
I want to create multiple instances of the code to run in the background and be able to pass input to a specific instance.
Q1:…

Waley Chen
- 929
- 3
- 10
- 23
0
votes
1 answer
Checking if a file exists isn't working in a startup daemon
Okay, so I have a headless Raspberry Pi and I long ago created a daemon to make it play a sound effect when it boots up so I know it's (hopefully) ready for an SSH connection.
#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Required-Start: $local_fs…

Khatharr
- 3
- 1
0
votes
1 answer
How can I distribute a task between many process in Ruby?
I have a ruby daemon that selects 100 records from database and do a task with it.
To make it faster I usually create 3 instances of the same daemon. And each one selects diferents data by using mysql LIMIT and OFFSET.
The problem is that sometimes…

newx
- 595
- 7
- 16
0
votes
0 answers
Get daemon status programmatically on macOS using Qt
I need to query my daemon status from system tray application using Qt. Can't find any solution to do that.
For the Windows part I can use Win32 API: OpenSCManager -> OpenService -> QueryServiceStatus/QueryServiceStatusEx. Need the way to do the…

Igor Gorelik
- 63
- 3
0
votes
1 answer
How to create mac application, which will be always running in the background and collects Location?
I need to know how to create an application which will always be running in the background and collects location info once every 10 minutes. I don't know much about launch agents and daemons.
I have read a few examples where I found Launch agents is…

Ankur Prakash
- 1,417
- 4
- 18
- 31
0
votes
1 answer
Java Linux Daemons/Services with Server Side Input
I have a java executable that runs a service. It allows the admin to input commands while the service is running. It usually requires an open terminal to run. I connect to my server via ssh.
I can launch the service and it works but I can't exit the…
user5739650
0
votes
1 answer
Where are logs for Daemons of my ruby script
I have demamonized my ruby script like this
Daemons.run('script/meeting_receiver.rb')
basically i am using gem https://github.com/thuehlinger/daemons.
And i have used puts statements in my ruby code. So i was wondering where exactly i can find…

Zia Qamar
- 1,694
- 1
- 15
- 35
0
votes
1 answer
Extending Daemon class by two subclasses does not work
this is the daemon class i am using
it is acting as a base class which i want to spawn 2 seperate daemons from another controller file
class Daemon:
"""A generic daemon class.
Usage: subclass the daemon class and override the run()…

Srivatsa M
- 13
- 5
0
votes
2 answers
How to run artisan command in background Ubuntu 17.10
I am trying with putty below command and its working
php artisan horizon
But if I close ssh (putty) this command automatically shut down.
I want to run this command always in the background.

UMAIR ALI
- 1,055
- 5
- 14
- 25
0
votes
5 answers
Remote process control in Linux
I'm currently working on a project requiring a number of processes running under control of a "master" process, which receives remote commands via TCP and tells the child processes what to do (e.g.: what files they should act on, what processing…

cyberguijarro
- 715
- 3
- 9
- 21
0
votes
1 answer
How to allow sinatra poll for data smartly
I am wanting to design an application where the back end is constantly polling different sensors while the front end (sinatra) allows for this data to be viewed either via json api, or by simply displaying the results in html.
What considerations…

randy newfield
- 1,221
- 3
- 25
- 38