Konfiguriere Minion Job Queue
This commit is contained in:
parent
400b61b934
commit
2c02f0d5cb
5 changed files with 59 additions and 6 deletions
21
templates/lstu-minion.service
Normal file
21
templates/lstu-minion.service
Normal file
|
@ -0,0 +1,21 @@
|
|||
[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
|
Loading…
Add table
Add a link
Reference in a new issue