daemon

Proper way to manage Daemons, Debian/Ubuntu Linux

What is the best way? Or at least... an easily managed one? I am routinely creating shell and python scripts that need to always be running in the background. Any recommendations on packages that simplify this? In the past I would stick a shell script in cron to check for the running process, but this feels like a hack. I recently re...

How to control mutil daemons processes in ruby?

How to start many processes(will run the same script) by "Daemons gem", and how to stop one of them as I want ? thanks! ...

Giving my Python application a web interface to monitor it, using Tornado

I've got a Python application which is daemonized and running on a server 24/7. I'd like to be able to give an incredibly simple web interface so that I can monitor the changing values of a few variables within the program. I'm using Tornado, and I'm up and running with the simple 'Hello, world' that you can find on the Tornado homepag...

Scripting a MySQL query in Unix using daemon in PHP

I'm trying to make an "at" job work at a given time, for testing purposes I'm using $time but this will be a datetime that I get from a separate MySQL query. In the command line I go like this: echo "mysql -e 'UPDATE admin SET row1=row2 WHERE id=1;'" | at now And I get a "job 36 at 2010-10-28 15:05". in PHP I tried going like this: ...

Anyway to Boost java JVM Startup Speed?

Hello SO Well , it is said that Java is 10x faster than python in terms of performance, thats what i see from benchmarks too. But what really brings down java is its startup time of JVM which is quite stupid. This is a test i made: $time xlsx2csv.py Types\ of\ ESI\ v2.doc-emb-Package-9 ... <output skipped> real 0m0.085s user 0m...

Does sleep ges interrupted when any signal is received in perl?

I have this simple perl daemon: #!/usr/bin/perl use strict; use warnings; use Proc::Daemon; Proc::Daemon::Init; my $continue = 1; $SIG{TERM} = sub { $continue = 0 }; $SIG{USR1} = sub { do_process(1) }; # basic daemon boxesd_log("started boxesd"); ...

mysql connection from daemon written in php

i have written a daemon to fetch some stuff from mysql and make some curl requests based on the info from mysql. since i'm fluent in php i've written this daemon in php using System_Daemon from pear. this works fine but i'm curious about the best approach for connecting to mysql. feels weird to create a new mysql connection every coupl...