matrix.grapheneos.org/systemd/system/mjolnir.service

44 lines
967 B
SYSTEMD
Raw Normal View History

2022-05-14 20:11:11 +00:00
[Unit]
Description=mjolnir bot
After=synapse.service
[Service]
CapabilityBoundingSet=
2022-07-10 21:36:16 +00:00
Environment=NODE_ENV=production
2022-05-14 20:11:11 +00:00
ExecStart=/usr/bin/node /opt/mjolnir/lib/index.js
IPAddressDeny=any
IPAddressAllow=localhost
LockPersonality=true
NoNewPrivileges=true
PrivateDevices=true
PrivateIPC=true
PrivateTmp=true
PrivateUsers=true
ProcSubset=pid
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
ReadWritePaths=/var/lib/mjolnir
RemoveIPC=true
2022-05-14 20:11:11 +00:00
Restart=on-failure
RestartSec=5s
2022-07-11 23:50:21 +00:00
RestrictAddressFamilies=AF_INET6
2022-05-14 20:11:11 +00:00
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service pkey_mprotect pkey_alloc pkey_free
SystemCallFilter=~@privileged @resources @obsolete
UMask=0077
User=mjolnir
WorkingDirectory=/var/lib/mjolnir
[Install]
WantedBy=multi-user.target