mirror of
https://github.com/foxcpp/maddy.git
synced 2025-04-04 21:47:40 +03:00
dist: Set ExecReload to send SIGUSR1+SIGUSR2 to process
It is not recommended by systemd.service(5) to use signals in ExecReload, but we do not have a better solution now.
This commit is contained in:
parent
126eb2e33f
commit
ed9e2daed7
2 changed files with 6 additions and 0 deletions
3
dist/systemd/maddy.service
vendored
3
dist/systemd/maddy.service
vendored
|
@ -74,3 +74,6 @@ Restart=on-failure
|
||||||
RestartPreventExitStatus=2
|
RestartPreventExitStatus=2
|
||||||
|
|
||||||
ExecStart=/usr/bin/maddy
|
ExecStart=/usr/bin/maddy
|
||||||
|
|
||||||
|
ExecReload=/bin/kill -USR1 $MAINPID
|
||||||
|
ExecReload=/bin/kill -USR2 $MAINPID
|
||||||
|
|
3
dist/systemd/maddy@.service
vendored
3
dist/systemd/maddy@.service
vendored
|
@ -68,3 +68,6 @@ Restart=on-failure
|
||||||
RestartPreventExitStatus=2
|
RestartPreventExitStatus=2
|
||||||
|
|
||||||
ExecStart=/usr/bin/maddy -config /etc/maddy/%i.conf
|
ExecStart=/usr/bin/maddy -config /etc/maddy/%i.conf
|
||||||
|
|
||||||
|
ExecReload=/bin/kill -USR1 $MAINPID
|
||||||
|
ExecReload=/bin/kill -USR2 $MAINPID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue