X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=IDEAS;h=992910cbd27f6cbdb345a4c460e85a1a2e982ea6;hb=5231273c6ddb272733286beb5e3d5faf94cfd437;hp=9e1eab8c6495ce00d7b1409570cc972c7c2ec7a7;hpb=7ada91b857533205dd44d74f9686232ac7adf34f;p=gitmo%2FMooseX-Daemonize.git diff --git a/IDEAS b/IDEAS index 9e1eab8..992910c 100644 --- a/IDEAS +++ b/IDEAS @@ -1 +1,16 @@ -* 2:36 : mike : A slightly different would be to have another object, which is a daemon, which is the keeper of the PIDs. It can bind to a port and then your other objects would actually cause things to happen without needing a PID file. +* 2:36 : mike : A slightly different would be to have another object, which is a +daemon, which is the keeper of the PIDs. It can bind to a port and then your other +objects would actually cause things to happen without needing a PID file. + + +[12:16] I guess what I'm saying is that start() has three possible results: success, already running, failed to start +[12:17] I am not as familair as you are with this stuff so I am not 100% of al the things +[12:17] and stop() does too: success, not running, failed to stop +[12:17] k +[12:17] perfect +[12:17] I will add em :) +... +[12:18] can you map the exit value to those three states (sorry I am not familiar with these details myself) +[12:18] for most people, the right answer is that start()'s success/already_running should return OK to the OS, failed returns error +[12:18] OK = 0, ERROR = 1? +[12:18] and stop()'s success/not_running should also be OK (exit 0) \ No newline at end of file