feat: done vibing
This commit is contained in:
27 files changed
+1922
-13
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# User-scope systemd unit. Install with:
|
||||
# mkdir -p ~/.config/systemd/user
|
||||
# cp systemd/stonks.service systemd/stonks.timer ~/.config/systemd/user/
|
||||
# systemctl --user daemon-reload
|
||||
# systemctl --user enable --now stonks.timer
|
||||
# loginctl enable-linger "$USER" # so it still runs while logged out
|
||||
[Unit]
|
||||
Description=Daily financial news & market analysis
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
EnvironmentFile=%h/.config/stonks/secrets.env
|
||||
ExecStart=%h/.local/bin/stonks --config %h/.config/stonks/config.yaml
|
||||
@@ -0,0 +1,11 @@
|
||||
[Unit]
|
||||
Description=Run stonks every 5 hours
|
||||
|
||||
[Timer]
|
||||
# Fires at 00:00, 05:00, 10:00, 15:00, 20:00 (wall-clock aligned, so
|
||||
# Persistent=true has a predictable catch-up time if the machine was off).
|
||||
OnCalendar=*-*-* 0/5:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in new issue
Block a user