Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
202 views

For the daemon processes, it is a standard practice to flcose(stdin); fclose(stdout);, same is there in the application code, and then we are trying to use dnsutility /usr/bin/host to resolve host ...
Mohammed Harmain's user avatar
0 votes
0 answers
38 views

I've got a Rails app that incorporates some daemons. Unfortunately, I haven't written unit tests for the app yet. I've recently decided to rectify that, but I'm facing a challenge—I can't figure out a ...
Mostafa Sobh's user avatar
0 votes
0 answers
40 views

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 ...
Bruno Gonçalves's user avatar
1 vote
0 answers
174 views

To learn about macOS services (daemons and agents), I have a sample GUI app which counts every 10 sec in the background and displays some UI. In AppDelegate.swift class AppDelegate: NSObject, ...
NightFuryLxD's user avatar
0 votes
1 answer
1k views

require 'sidekiq' module KYC module VerifyInvestor class AccreditedVerificationWorker include Sidekiq::Worker def perform() .... end end end end
2506Abhinav Kukreja's user avatar
0 votes
1 answer
643 views

I need to set up a client server on a Linux system such that the client sends the server data from multiple files. My plan was to write a server daemon that opened up a listening port for clients to ...
geenweb's user avatar
  • 165
2 votes
0 answers
268 views

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 ...
Eitan's user avatar
  • 1,436
1 vote
0 answers
32 views

I want to create an endless thread with python3.7 that receives an input signal in the background. It should stop when my program, so main stops. I set my thread to daemon=True but it just continues ...
curiesse's user avatar
1 vote
1 answer
290 views

I have a RabbitMQ with bunny working using consumer.rb and publisher.rb. If I run ruby consumer.rb and then publisher.rb I get data being published (data coming from another class). Data ...
Pav's user avatar
  • 19
0 votes
1 answer
73 views

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 ...
Khatharr's user avatar
1 vote
2 answers
537 views

I'm trying to daemonize Celery 4.3.0 on Ubuntu 18 following the official documentation. This is for a Django project to off-load intensive tasks. When the server is running the celery.service should ...
Owen's user avatar
  • 61
0 votes
0 answers
207 views

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 -> ...
Igor Gorelik's user avatar
0 votes
1 answer
3k views

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 ...
Ankur Prakash's user avatar
2 votes
1 answer
269 views

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 ...
FakeBenJay's user avatar
0 votes
1 answer
49 views

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 ...
user avatar
1 vote
0 answers
85 views

I have an ubuntu server with a nuxt.js app (Vue.js). On deploy I build the app and I have a daemon which runs and which I kill at the end of the deployment (so it restarts basically). My question is:...
mauxtin's user avatar
  • 408
0 votes
1 answer
322 views

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 ...
Zia Qamar's user avatar
  • 1,795
4 votes
2 answers
2k views

I'm developing a "Rails-less" Ruby daemon for automation (although in theory it runs within a Rails directory). For general purposes and the principle of the matter, I would like to find the (most) "...
Jon Lawton's user avatar
0 votes
1 answer
281 views

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: ...
Srivatsa M's user avatar
0 votes
2 answers
3k views

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's user avatar
  • 1,115
2 votes
2 answers
1k views

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....
Aditi Sharma's user avatar
0 votes
1 answer
154 views

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 ...
randy newfield's user avatar
2 votes
2 answers
935 views

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 ...
Jay Dave's user avatar
  • 1,001
1 vote
1 answer
1k views

I want to start a daemon process using multiprocessing exiting the main thread. I wrote this code: import multiprocessing as mp from time import sleep def mytarget(): while True: print "...
Fomalhaut's user avatar
  • 9,991
1 vote
1 answer
1k views

Guys, I need to start docker daemon as other user under my Ubuntu 14.04.. I have this user in the sudoers' group and in the docker's group, but, what I need is the docker daemon running as my "test" ...
Maicon Baum's user avatar
3 votes
1 answer
3k views

I have a function foo() that creates multiple objects. This function is called several times during the run of my progam. In order to speed up my code, I want to make foo() create a set of processes, ...
Natjo's user avatar
  • 2,138
1 vote
0 answers
88 views

I am Designing an application that requires a Command Line Application binary to use for remote/local usage. The application will have plugins that will allow for addition and removal by the user. ...
Denis Arsenault's user avatar
1 vote
2 answers
603 views

#!/bin/bash z=1 b=$(date) while [[ $z -eq 1 ]] do a=$(date) if [ "$a" == "$b" ] then b=$(date -d "+7 days") rsync -v ...
kartik's user avatar
  • 55
-1 votes
1 answer
153 views

What is the best way to do a ruby process as a background system daemon in Debian? These daemons are telecom billing process read from many database sources, which write one at a time and to a log ...
Javier Valencia's user avatar
1 vote
0 answers
148 views

I was trying to connect daemons (group of daemons without a leader) with main process as in title, the problem is that i have to send statement from each daemon(which are supporting SIGUSR1 signal) to ...
Jorgusss's user avatar
0 votes
2 answers
159 views

I am using daemon to wrap my script and has specified logs location into that : Script looks like this : #!/usr/local/bin/ruby require 'rubygems' require 'daemons' Daemons.run_proc( 'script_test',...
Grin like a Cheshire cat's user avatar
-1 votes
2 answers
288 views

We are running rabbitmq, redis and celery on a Debian wheezy (oldstable) linux server. all of them are installed as init.d scripts and started at boot time. we would like to keep an eye on them and ...
tagsense's user avatar
2 votes
1 answer
751 views

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 ...
Debiprasad Mishra's user avatar
5 votes
0 answers
3k views

Running a Rails App in Mac. I start rabbit mq server in other terminal tab: $ rabbitmq-server The I do staff within my Web App, and when the mail is supossed to be sent, I got this in /usr/local/...
Emba Moussa's user avatar
1 vote
1 answer
1k views

I have a rake task that polls an Amazon SQS queue indefinitely, which needs to be kept alive on a server. What would be the best solution for doing this? Any decent, maintained gems for daemonizing, ...
JK14's user avatar
  • 11
1 vote
2 answers
311 views

I daemonized a Ruby scheduler script (using Rufus) with Rufus-Scheduler DaemonKit and I'm trying to trap the TERM or INT signals to have the application try to save state before quitting. DaemonKit ...
blackbird's user avatar
  • 1,147
1 vote
0 answers
80 views

In Ubuntu 14.04 or Debian Wheezy, Can I run two daemons of same type in a single machine? I already tried to do that, by creating separate config files under /etc/init.d/ , /usr/bin/, Created ...
ganeshkaila's user avatar
1 vote
2 answers
558 views

I have a program that uses a work queue to execute tasks, and is supposed to run as a daemon. I had been achieving this using the following code: bool seedDaemon() { using namespace std; ...
Oblivious12's user avatar
0 votes
0 answers
62 views

I am creating a virtual folder in my system which is needed to be persisted until the user manually removes it. Since it is a virtual folder it is getting removed automatically once the system is ...
XiOS's user avatar
  • 1,815
1 vote
0 answers
245 views

I have created a python daemon by a Tutorial and it is running just as tutorial example has. But there are problems: The output of service --status-all says: [ ? ] testdaemon Can anyone help me to ...
Parisa's user avatar
  • 73
4 votes
0 answers
5k views

Note: I don't have any real experience managing servers or using Linux on any deep level so my knowledge and understanding is quite limited. In essence, I'm winging it. For full code examples see: ...
Integralist's user avatar
  • 2,221
2 votes
2 answers
1k views

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 ...
samxiao's user avatar
  • 2,697
0 votes
1 answer
29 views

When I run the jps command: I only see jps as the running java program in return. When I run start-all.sh command, I receive errrors like:Connection to port 22 refused
user3683818's user avatar
9 votes
1 answer
2k views

I have some tasks [for my RPi] in Python that involve a lot of sleeping: do something that takes a second or two or three, then go wait for several minutes or hours. I want to pass control back to ...
RolfBly's user avatar
  • 3,912
0 votes
2 answers
999 views

I have a script and I need him to pass arguments to python program. I take arguments: DAEMON_ARGS="" start-stop-daemon --start --background --make-pidfile --pidfile $PIDFILE --startas $DAEMON \ ...
user3057314's user avatar
12 votes
1 answer
47k views

I'm trying to write a script to run one of my .jar files as daemons, but I am not understanding how to create a .sh extension file in Ubuntu. I have already used vi to create a file with the code that ...
vikas's user avatar
  • 483
85 votes
5 answers
214k views

I have a script, which runs my PHP script each X times: #!/bin/bash while true; do /usr/bin/php -f ./my-script.php echo "Waiting..." sleep 3 done How can I start it as daemon?
Sergey B.'s user avatar
  • 1,039
0 votes
0 answers
667 views

I have the following question: can I use a signal handler for SIGCHLD and at specific places use waitpid(3) instead? Here is my scenario: I start a daemon process that listens on a socket (at this ...
mamalos's user avatar
  • 97
0 votes
3 answers
7k views

I have trouble starting my Hadoop data-node. I did all the research that I could and none of the methods were helpful in solving my issue. Here's my terminal console output when I try to start it ...
Ace's user avatar
  • 1,629
0 votes
1 answer
53 views

I am having trouble launching daemons in my pseduo-distributed hadoop configuration. I type in the following command: sudo bin/start-all.sh I get prompts to enter my password, but once I do that, I ...
Ace's user avatar
  • 1,629