How do I restart an application?
Valentin V. Bartenev
vbart at nginx.com
Mon Mar 4 13:11:55 UTC 2019
On Monday 04 March 2019 12:34:52 Александр Поволоцкий wrote:
> Hello
>
> Do I have any way to restart specific application in unit? Or I have to
> restart unitd at all? I think some command like 'apachectl graceful'
> should exist/
>
[..]
Currently the best way to restart an application is something like this:
curl -X PUT -d "{\"gen\":\"$RANDOM\"}" \
--unix-socket /var/run/control.unit.sock \
/config/applications/<name>/environment
The more straightforward API is planned, for example:
curl --unix-socket /var/run/control.unit.sock \
/control/applications/<name>/restart
wbr, Valentin V. Bartenev
More information about the unit
mailing list