You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
579 B
19 lines
579 B
[Unit] |
|
Description=Riksdagen daily talk sync |
|
# Wait for network before starting |
|
After=network-online.target |
|
Wants=network-online.target |
|
|
|
[Service] |
|
Type=oneshot |
|
User=lasse |
|
WorkingDirectory=/home/lasse/riksdagen |
|
# Loads ARANGO_PWD and other env vars from the project .env file |
|
EnvironmentFile=/home/lasse/riksdagen/.env |
|
ExecStart=/home/lasse/riksdagen/.venv/bin/python /home/lasse/riksdagen/scripts/sync_talks.py |
|
# Log stdout/stderr to the systemd journal (view with: journalctl -u riksdagen-sync) |
|
StandardOutput=journal |
|
StandardError=journal |
|
|
|
[Install] |
|
WantedBy=multi-user.target
|
|
|