[Gambas-user] Logging errors in apps running as Application.Daemon

Tobias Boege taboege at ...626...
Fri Jun 23 12:46:13 CEST 2017


On Thu, 22 Jun 2017, alexchernoff wrote:
> Anyone know if there is a wrapper to daemonize apps while keeping them in
> regular console mode? That way maybe it will be possible to log fatal
> interpreter errors?
> 

Why do you want to daemonise then? From the manpage of daemon():

  The daemon() function is for programs wishing to detach themselves from
  the controlling terminal and run in the background as system daemons.

Maybe it's time to ask what you want to accomplish, because it's probably
not running a daemon.

Regards,
Tobi

-- 
"There's an old saying: Don't change anything... ever!" -- Mr. Monk




More information about the User mailing list