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

This commit is contained in:
wiz committed 2021-08-21 15:06:50 +09:00
1 parent 24dcdcaa48
commit 9afe2d45c9
1 file changed
+3 -1
+3 -1
View File
@@ -1,5 +1,7 @@
#!/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