mirror of
https://github.com/pockethost/pockethost.git
synced 2025-03-30 15:08:30 +00:00
chore: rotate logs and kill orphan pocketbase processes when restarting
This commit is contained in:
parent
606e52e9b6
commit
f59b2ed81e
@ -4,4 +4,7 @@ set -a
|
||||
source .env
|
||||
set +a
|
||||
|
||||
mv packages/daemon/daemon.log packages/daemon/daemon-`date +%s`.log
|
||||
truncate -s 0 packages/daemon/daemon.log
|
||||
pkill -f pocketbase
|
||||
yarn pm2
|
Loading…
x
Reference in New Issue
Block a user