From 2ebcbd1254e60dba9044c1f256e9d648f6a451c1 Mon Sep 17 00:00:00 2001 From: jerick Date: Mon, 4 May 2026 09:56:36 -0400 Subject: [PATCH] fixed timer update --- update.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/update.sh b/update.sh index 9af9bd3..fe0e8e1 100644 --- a/update.sh +++ b/update.sh @@ -16,4 +16,12 @@ for item in *.py *.txt systemd; do done chown -R crypto-trader:crypto-trader "$INSTALL_DIR" -echo "Updated. Run a test: sudo -u crypto-trader $INSTALL_DIR/venv/bin/python $INSTALL_DIR/bot.py" + +# Sync systemd units and reload if they changed +cp "$INSTALL_DIR/systemd/crypto-trader.service" /etc/systemd/system/ +cp "$INSTALL_DIR/systemd/crypto-trader.timer" /etc/systemd/system/ +systemctl daemon-reload +systemctl restart crypto-trader.timer + +echo "Updated. Next scheduled run:" +systemctl list-timers crypto-trader.timer --no-pager