Re: [Cppcms-users] Threads in async apps disappear if program is daemonized
Brought to you by:
artyom-beilis
|
From: CN <cn...@fa...> - 2013-12-20 09:45:15
|
Here are the shell file and cppcms configuration file that can work with
the testing program.
Regards,
CN
----------------------------
#!/bin/sh
if [ -f /tmp/strange.pid ]
then
kill `cat /tmp/strange.pid`
fi
rm -rf /tmp/strange.pid /tmp/strange.sock
./a.out -c config.js
chmod go+w /tmp/strange.sock
----------------------------
{
"service" : {
"api" : "fastcgi",
"socket" : "/tmp/strange.sock"
},
"daemon":{
"enable":true,
//"enable":false,
"lock":"/tmp/strange.pid"
},
"logging" : {
"level" : "debug",
"stderr" : false,
"file" : {
"name" : "/tmp/strange.log",
"append" : true
}
}
}
--
http://www.fastmail.fm - A fast, anti-spam email service.
|