errands
small jobs the runtime does for the studio.
git clone https://owenrusk.dev/errands.git
commit e235c28bfec7ba208e5b72848f95bb7d13164eb8 parent bfb4a11d14011647904bed829932dca7043405ac author Owen Rusk <owen@papermothgames.com> date 2025-04-08 12:30:19 -0500
deploy: systemd unit, its own user
| deploy/errands.env.example | +8 | -0 |
| deploy/errands.service | +16 | -0 |
diff --git a/deploy/errands.env.example b/deploy/errands.env.example new file mode 100644 index 0000000..5e25f90 --- /dev/null +++ b/deploy/errands.env.example @@ -0,0 +1,8 @@ +ERRANDS_IMAP_HOST= +ERRANDS_SMTP_HOST= +ERRANDS_MAIL_USER=support@papermothgames.com +ERRANDS_MAIL_PASSWORD= +ERRANDS_VAULT_PASSPHRASE= +ERRANDS_BANK_URL= +ERRANDS_SITE=/srv/papermoth-site +ERRANDS_SITE_PUBLISH=make publish diff --git a/deploy/errands.service b/deploy/errands.service new file mode 100644 index 0000000..0872e05 --- /dev/null +++ b/deploy/errands.service @@ -0,0 +1,16 @@ +[Unit] +Description=errands +After=network-online.target +Wants=network-online.target + +[Service] +User=mephistopheles +Group=mephistopheles +EnvironmentFile=/etc/errands.env +ExecStart=/opt/errands/venv/bin/python -m errands run +Restart=on-failure +RestartSec=30 +StateDirectory=errands + +[Install] +WantedBy=multi-user.target