mirror of
https://github.com/crowdsecurity/crowdsec.git
synced 2026-10-12 02:12:31 +00:00
systemd: check configuration before attempting reload (#2861)
This commit is contained in:
@@ -8,6 +8,7 @@ Environment=LC_ALL=C LANG=C
|
||||
ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
|
||||
#ExecStartPost=/bin/sleep 0.1
|
||||
ExecReload=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
|
||||
Vendored
+1
@@ -8,6 +8,7 @@ Environment=LC_ALL=C LANG=C
|
||||
ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
||||
#ExecStartPost=/bin/sleep 0.1
|
||||
ExecReload=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
RestartSec=60
|
||||
|
||||
@@ -9,5 +9,7 @@
|
||||
+ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
+ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
||||
#ExecStartPost=/bin/sleep 0.1
|
||||
-ExecReload=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
+ExecReload=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||
ExecReload=/bin/kill -HUP $MAINPID
|
||||
Restart=always
|
||||
|
||||
Reference in New Issue
Block a user