#193: pidfile when not daemonized..
-------------------------+--------------------------------------------------
Reporter: toots | Owner: admin
Type: Feature | Status: new
Priority: 1 | Milestone:
Component: Liquidsoap | Version:
Resolution: | Keywords:
Mac: 1 | Linux: 1
Netbsd: 1 | Other: 1
Freebsd: 1 |
-------------------------+--------------------------------------------------
Comment (by mrpingouin):
You can have log files (and logrotate) independently of daemon mode. For
the pidfile, it's not so much a matter of hardcoding, but rather or
meaning. In liq init.daemon.pidfile is true by default, and that is never
changed. But dtools only uses the pidfile to store the pid when it
detaches liquidsoap. So you're asking to use the pidfile to store the PID
also for a normal process (running in a screen) to notably be able to kill
it easily.
Why not ? it seems OK to me. But I don't think it should be the default in
liq, because we'd often get permission problems when running liq for small
tests with normal accounts. In general, it might be better to avoid this
behavior by default in dtools, by setting pidfile to false by default,
which might be the case currently. Gim what do you think?
The only reason not to change dtools is because there is a simpler
approach, which I'd like to take in the future: use the features of OCaml
3.11 to display exceptions and backtraces better. Makes me think that
currently liq does display the exceptions that crash its threads. So
you're probably thinking of crashes of duppy, for example, and you could
use the same device of catching the exception, displaying/logging it
before crashing.
--
Ticket URL: <http://savonet.rastageeks.org/ticket/193#comment:1>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Savonet-trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-trac