OK for daemonize().

I don't have TntConfig variable. As your bookshop example, I created the Configuration class and I use it to call setAccessLog method. I tried with the latest git version of tntnet without success.

Jean-Michel



Le 11/04/2015 16:02, Tommi Mäkitalo a écrit :
There is no direct support of starting your own app as a daemon. But you may want to use the function:

    cxxtools::posix::daemonize(const std::string& pidfile =
    std::string());



After that the process runs in the background. Note that the pid of the current process will change since this function calls fork and exit for the current process and continues in the forked process.

Tommi

Am 11.04.2015 um 15:47 schrieb Jean-Marc Choulet:
Le 11/04/2015 15:39, Tommi Mäkitalo a écrit :
Either update to latest git version, where I just checked in a fix or use:
Latest git version of tntnet only ?

And to start my app as daemon ? I don't find any method to set this
parameter in my main.cpp file.

Jean-Marc

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF


_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general

Reply via email to