How do I restart an application?

Valentin V. Bartenev vbart at nginx.com
Mon Mar 4 13:18:32 UTC 2019


On Monday 04 March 2019 16:13:13 Александр Поволоцкий wrote:
> Sounds nice. I'd like also commands "restart" and "graceful" as 
> different ones.
> 
[..]

Thanks for suggestion.  Noted.

Probably:

 curl --unix-socket /var/run/control.unit.sock \
      /control/applications/<name>/restart?graceful=false

(graceful=true by default)

  wbr, Valentin V. Bartenev



More information about the unit mailing list