mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
fix(pkill): use the correct command flag
This commit is contained in:
@@ -45,7 +45,7 @@ gitlab-runner exec docker \
|
||||
|
||||
# Force a configuration file reload.
|
||||
sudo kill -HUP $(pidof 'gitlab-runner')
|
||||
sudo pkill --signal 'SIGHUP' 'gitlab-runner'
|
||||
sudo pkill -HUP 'gitlab-runner'
|
||||
```
|
||||
|
||||
</details>
|
||||
|
||||
@@ -52,7 +52,7 @@ logstash … --config.reload.automatic --config.reload.interval '5s'
|
||||
# Force configuration files reload and restart the pipelines.
|
||||
# Does not really seem to work, honestly. Just restart the whole service.
|
||||
kill -SIGHUP '14175'
|
||||
pkill --signal 'SIGHUP' 'logstash'
|
||||
pkill -HUP 'logstash'
|
||||
|
||||
|
||||
# Install plugins.
|
||||
|
||||
@@ -79,12 +79,12 @@ docker run --rm -v "$PWD/config.yaml:/etc/prometheus/prometheus.yml:ro" --entryp
|
||||
|
||||
# Reload the configuration file *without* restarting the process.
|
||||
kill -s 'SIGHUP' '3969'
|
||||
pkill --signal 'HUP' 'prometheus'
|
||||
pkill -HUP 'prometheus'
|
||||
curl -i -X 'POST' 'localhost:9090/-/reload' # if admin APIs are enabled
|
||||
|
||||
# Shut down the process *gracefully*.
|
||||
kill -s 'SIGTERM' '3969'
|
||||
pkill --signal 'TERM' 'prometheus'
|
||||
pkill -TERM 'prometheus'
|
||||
|
||||
# Push test metrics to a remote.
|
||||
promtool push metrics 'http://mimir.example.org:8080/api/v1/push'
|
||||
@@ -203,7 +203,7 @@ Prometheus can reload the configuration file with**out** restarting its process
|
||||
|
||||
```sh
|
||||
kill -s 'SIGHUP' '3969'
|
||||
pkill --signal 'HUP' 'prometheus'
|
||||
pkill -HUP 'prometheus'
|
||||
```
|
||||
|
||||
- Sending a `POST` HTTP request to the `/-/reload` endpoint.<br/>
|
||||
|
||||
@@ -19,5 +19,5 @@ kill -KILL '1234'
|
||||
kill -SIGKILL '1234'
|
||||
kill -s 'SIGHUP' '3969'
|
||||
pkill -KILL 'firefox'
|
||||
pkill --signal 'HUP' 'prometheus'
|
||||
pkill -HUP 'prometheus'
|
||||
killall -s 'SIGKILL' 'firefox-bin'
|
||||
|
||||
Reference in New Issue
Block a user