2022-12-10 15:02:35 +01:00
|
|
|
[Unit]
|
|
|
|
Description=Shortened URLs service
|
|
|
|
Documentation=https://framagit.org/fiat-tux/hat-softwares/lstu
|
|
|
|
Requires=network.target
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
|
|
|
User={{ lstu_user }}
|
|
|
|
RemainAfterExit=yes
|
|
|
|
WorkingDirectory={{ lstu.path }}
|
|
|
|
PIDFile={{ lstu.path }}/script/hypnotoad.pid
|
|
|
|
ExecStart=/usr/bin/carton exec hypnotoad script/lstu
|
|
|
|
ExecStop=/usr/bin/carton exec hypnotoad -s script/lstu
|
|
|
|
ExecReload=/usr/bin/carton exec hypnotoad script/lstu
|
|
|
|
|
2022-12-13 16:47:31 +01:00
|
|
|
# Hardening
|
|
|
|
CapabilityBoundingSet=
|
|
|
|
PrivateMounts=true
|
|
|
|
PrivateTmp=true
|
|
|
|
ProtectControlGroups=true
|
|
|
|
ProtectHome=true
|
|
|
|
ProtectSystem=strict
|
|
|
|
ReadWritePaths=-{{ lstu.path }}
|
|
|
|
|
2022-12-10 15:02:35 +01:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|