status: use env as parameters to service

Instead of having to rewrite the service file with parameters,
leverage Env file to pass default parameters values.
This commit is contained in:
2025-10-06 13:21:51 +02:00
parent f6fd96881d
commit d061f29699
4 changed files with 62 additions and 8 deletions

View File

@@ -0,0 +1,16 @@
[Unit]
Description=OBS build status as SVG service
After=network-online.target
[Service]
Type=exec
Restart=on-failure
ExecStart=/usr/bin/obs-status-service
EnvironmentFile=-/etc/default/obs-status-service.env
DynamicUser=yes
NoNewPrivileges=yes
ProtectSystem=strict
[Install]
WantedBy=multi-user.target