Let a server service carry helper scripts and timers, starting with UseSend's cert refresh

This commit is contained in:
Gabriel Brown committed 2026-10-30 13:44:29 -04:00
1 parent a987cbab66
commit 95fa480469
9 files changed
+304 -59

No files matched your search

@@ -0,0 +1,15 @@
[Unit]
Description=Refresh UseSend SMTP proxy TLS certificate from NPM's Let's Encrypt store
Documentation=file://%h/Server/UseSend/README.md
After=podman-usesend.service
[Service]
Type=oneshot
ExecStart=%h/Server/UseSend/refresh-smtp-certs
# The script calls `podman restart`, which leaves conmon and the container's
# supervising processes inside THIS unit's cgroup. With the default KillMode,
# systemd waits for that cgroup to empty and the unit times out and reports
# `failed` even though ExecStart returned 0 and the cert was installed correctly.
# KillMode=process makes systemd track only the script itself.
KillMode=process
TimeoutStartSec=300