Files
stonks/systemd/stonks.service
T
2026-09-05 09:55:24 +08:00

16 lines
561 B
Desktop File

# 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