systemd migration
This commit is contained in:
parent
a20c6440ee
commit
188ffb6c70
17 changed files with 35 additions and 19 deletions
|
@ -0,0 +1,37 @@
|
|||
[Unit]
|
||||
Description=service mautrix-syncproxy
|
||||
Documentation=https://github.com/mautrix/syncproxy
|
||||
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=mautrix-syncproxy
|
||||
Group=mautrix-syncproxy
|
||||
EnvironmentFile=/etc/default/mautrix-syncproxy
|
||||
ExecStart=/usr/bin/mautrix-syncproxy
|
||||
WorkingDirectory=/tmp
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
#ReadWritePaths=/tmp
|
||||
NoNewPrivileges=yes
|
||||
MemoryDenyWriteExecute=true
|
||||
PrivateDevices=yes
|
||||
PrivateTmp=yes
|
||||
ProtectHome=yes
|
||||
ProtectSystem=strict
|
||||
ProtectControlGroups=true
|
||||
RestrictSUIDSGID=true
|
||||
RestrictRealtime=true
|
||||
LockPersonality=true
|
||||
ProtectKernelLogs=true
|
||||
ProtectKernelTunables=true
|
||||
ProtectHostname=true
|
||||
ProtectKernelModules=true
|
||||
PrivateUsers=true
|
||||
ProtectClock=true
|
||||
SystemCallArchitectures=native
|
||||
SystemCallErrorNumber=EPERM
|
||||
SystemCallFilter=@system-service
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Add table
Add a link
Reference in a new issue