Modify restart script to log restart events, don't restart services

This commit is contained in:
wiz 2021-08-21 15:06:50 +09:00
parent 815c2c5ad5
commit 17a8e67d8a
No known key found for this signature in database
GPG Key ID: A394E332255A6173

View File

@ -1,5 +1,7 @@
#!/usr/bin/env zsh #!/usr/bin/env zsh
ps uaxw|grep 'dist/index'|grep -v grep|awk '{print $2}'|xargs -n 1 kill echo restarting all mempool backends | wall
echo restarting all mempool backends | logger -t mempool -p local7.notice
ps uaxw|grep 'dist/index'|grep -v grep|grep -v services|awk '{print $2}'|xargs -n 1 kill
exit 0 exit 0