Re: [Cppcms-users] Can cmake restart the cppcms server?
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-02-02 08:38:38
|
> See, unlike web server that can "re-read" its configuration > on -HUP signal, you should actually reload executable after > recompilation - replace it. > > You can do this easily with a simple script: > > while ./myapp -c myconfig ; do sleep 0.5 ; done > > And when you kill it by > > killall -TERM myapp > > It would restart automatically. > > while ./myapp is needed to prevent infinite restart > in case myapp exists with error code. Thank you. But, is it possible for cmake to call the TERM signal after a recompile? I know this probably belongs to cmake mailing list... Petr |