Rotate log file on SIGHUP
Add functionality to rotate the log file when `SIGHUP` signal is received. Also, a doc is added with few details about logging. Signed-off-by: Ionut Balutoiu <ibalutoiu@cloudbasesolutions.com>
This commit is contained in:
parent
442e76e278
commit
721cbefd6a
3 changed files with 40 additions and 0 deletions
|
|
@ -5,6 +5,7 @@ After=multi-user.target
|
|||
[Service]
|
||||
Type=simple
|
||||
ExecStart=/usr/local/bin/garm -config /etc/garm/config.toml
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
RestartSec=5s
|
||||
User=garm
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue