35 lines
984 B
Desktop File
35 lines
984 B
Desktop File
# Ianitor control: API and web UI on 127.0.0.1:7878 (deploy/linux/install.sh writes this).
|
|
[Unit]
|
|
Description=Ianitor control (API and UI on loopback)
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
|
|
[Service]
|
|
User=ianitor
|
|
Group=ianitor
|
|
Environment=IANITOR_LOG=info
|
|
ExecStart=/usr/local/bin/ianitor-control --config /etc/ianitor/control.toml
|
|
# After every stop, a crash included: a trial still loaded into Caddy goes back at once.
|
|
ExecStopPost=/usr/local/bin/ianitor-control caddy-revert --config /etc/ianitor/control.toml
|
|
Restart=on-failure
|
|
RestartSec=2
|
|
ReadWritePaths=/var/lib/ianitor
|
|
NoNewPrivileges=yes
|
|
ProtectSystem=strict
|
|
ProtectHome=yes
|
|
PrivateTmp=yes
|
|
PrivateDevices=yes
|
|
ProtectKernelTunables=yes
|
|
ProtectKernelModules=yes
|
|
ProtectControlGroups=yes
|
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
|
RestrictNamespaces=yes
|
|
LockPersonality=yes
|
|
MemoryDenyWriteExecute=yes
|
|
SystemCallArchitectures=native
|
|
CapabilityBoundingSet=
|
|
UMask=0027
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|