Questions tagged [daemons]

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.

105 questions
0
votes
1 answer

Can't Run Delayed Job in the background on ruby 1.9.2

rake jobs:work works just fine But RAILS_ENV=development ./script/delayed_job start (or any of its permutations) doesn't work on 1.9.2. I can run it just fine on 1.9.1. Anyone have a solution for this?
Jeff
  • 4,751
  • 5
  • 31
  • 35
0
votes
2 answers

Add logs in different directory using daemon in ruby

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', # name of daemon :log_output => true, …
0
votes
0 answers

MacOSX lanch daemons

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 turned off or restarted. So, in order to persist it,…
XiOS
  • 1,665
  • 2
  • 18
  • 22
0
votes
1 answer

Not able to run Hadoop daemons

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
0
votes
2 answers

Passing arguments from sh script(remade from etc/init.d/skeleton) to python

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 \ $DAEMON_ARGS \ …
user3057314
  • 65
  • 1
  • 7
0
votes
0 answers

Signal and waitpid coexistence

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 point it's irrelevant if it's a TCP or a UNIX…
mamalos
  • 97
  • 10
0
votes
3 answers

Data-Node Does Not Start

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 using hadoop datanode -start This is what…
Ace
  • 1,501
  • 4
  • 30
  • 49
0
votes
1 answer

Hadoop: Cannot Launch Daemons

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 get this error message root@localhost's password:…
Ace
  • 1,501
  • 4
  • 30
  • 49
0
votes
1 answer

handling db connection on daemonize threads

I have a problem handling database connections in a daemon I've been working on, I first connect to my postgres database with: try: psycopg2.apilevel = '2.0' psycopg2.threadsafety = 3 cnx = psycopg2.connect( "host='192.168.10.36' dbname='db'…
Ignus
  • 330
  • 3
  • 15
0
votes
1 answer

regarding a script launching a daemon process

I am quite new to the daemon process and java, and was just given the following script for running a daemon process. I can generally understand the structure of this script. But I have several questions: What do “Install”, “StdOutput”, “StartClass”…
user785099
  • 5,323
  • 10
  • 44
  • 62
0
votes
2 answers

How to increase number of apache processes or concurrent php files?

The problem was not in my server, it was somewhere in network or browsers... I guess some kind of policy against DDoS attacks, where you can't access multiple files on server from one IP at once. I have a question for you. I'm testing quad…
Martin Šajna
  • 123
  • 2
  • 8
-1
votes
1 answer

Performant Systemd Socket Setup

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 connect to and send data. Researching this I see…
geenweb
  • 97
  • 1
  • 7
-1
votes
1 answer

Best way to do a ruby process as a daemon

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 file.
Javier Valencia
  • 697
  • 7
  • 24
-1
votes
2 answers

supervising daemons in debian

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 get email alerts, if any of them goes down. I have…
tagsense
  • 81
  • 2
  • 8
-2
votes
2 answers

When daemon will hog cpu?

What are the possible condition might occur for daemon to hog the cpu and makes the system very slow or moved to non-responsive state? Daemons have few threads as well.
Thangaraj
  • 3,038
  • 7
  • 40
  • 43
1 2 3 4 5 6
7