Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bdeaafb

Browse files
committed
Restart webhook service on failure
1 parent f8ae94a commit bdeaafb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

webhook/webhook.service

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ User=caddy
1111
Group=caddy
1212
ExecStart=/usr/bin/python3 /usr/bin/webhook.py localhost:1234
1313
EnvironmentFile=/etc/caddy/webhook.env
14+
Restart=on-failure
1415
TimeoutStopSec=5s
1516
LimitNOFILE=1048576
1617
LimitNPROC=512

0 commit comments

Comments
 (0)