File: IDEAS

package info (click to toggle)
libmoosex-daemonize-perl 0.22-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, forky, trixie
  • size: 420 kB
  • sloc: perl: 766; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 1,011 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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.


[12:16]  <blblack> I guess what I'm saying is that start() has three possible results: success, already running, failed to start
[12:17]  <stevan> I am not as familair as you are with this stuff so I am not 100% of al the things
[12:17]  <blblack> and stop() does too: success, not running, failed to stop
[12:17]  <stevan> k
[12:17]  <stevan> perfect
[12:17]  <stevan> I will add em :)
...
[12:18]  <stevan> can you map the exit value to those three states (sorry I am not familiar with these details myself)
[12:18]  <blblack> for most people, the right answer is that start()'s success/already_running should return OK to the OS, failed returns error
[12:18]  <stevan> OK = 0, ERROR = 1?
[12:18]  <blblack> and stop()'s success/not_running should also be OK (exit 0)