ansible-role-lstu/templates/lstu-minion.service

22 lines
461 B
SYSTEMD
Raw Normal View History

2022-12-14 17:17:59 +01:00
[Unit]
Description=Shortened URLs service job queue
Documentation=https://framagit.org/fiat-tux/hat-softwares/lstu
[Service]
Type=simple
User={{ lstu_user }}
WorkingDirectory={{ lstu.path }}
ExecStart=/usr/bin/carton exec script/application minion worker
# Hardening
CapabilityBoundingSet=
PrivateMounts=true
PrivateTmp=true
ProtectControlGroups=true
ProtectHome=true
ProtectSystem=strict
ReadWritePaths=-{{ lstu.path }}
[Install]
WantedBy=multi-user.target