systemd: check configuration before attempting reload (#2861)
This commit is contained in:
parent
a23fe06d68
commit
8e9e091656
3 changed files with 4 additions and 0 deletions
|
@ -8,6 +8,7 @@ Environment=LC_ALL=C LANG=C
|
||||||
ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
ExecStartPre=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||||
ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
|
ExecStart=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml
|
||||||
#ExecStartPost=/bin/sleep 0.1
|
#ExecStartPost=/bin/sleep 0.1
|
||||||
|
ExecReload=/usr/local/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=60
|
RestartSec=60
|
||||||
|
|
1
debian/crowdsec.service
vendored
1
debian/crowdsec.service
vendored
|
@ -8,6 +8,7 @@ Environment=LC_ALL=C LANG=C
|
||||||
ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||||
ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
||||||
#ExecStartPost=/bin/sleep 0.1
|
#ExecStartPost=/bin/sleep 0.1
|
||||||
|
ExecReload=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||||
ExecReload=/bin/kill -HUP $MAINPID
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=60
|
RestartSec=60
|
||||||
|
|
|
@ -9,5 +9,7 @@
|
||||||
+ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
+ExecStartPre=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml -t -error
|
||||||
+ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
+ExecStart=/usr/bin/crowdsec -c /etc/crowdsec/config.yaml
|
||||||
#ExecStartPost=/bin/sleep 0.1
|
#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
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
Loading…
Reference in a new issue