This repository has been archived on 2023-08-27. You can view files and clone it, but cannot push or open issues or pull requests.
tcpaste/contrib/systemd/tcp-pasted.service.in
Thorsten Schubert 4f4cb4258d
All checks were successful
continuous-integration/drone/push Build is passing
Rename to erased
2021-10-29 22:00:50 +02:00

38 lines
836 B
SYSTEMD

[Unit]
Description=TCPaste pasted
Wants=network-online.target
After=network.target network-online.target
[Service]
User=unsha
Group=http
Type=simple
WorkingDirectory=@path@
ExecStart=@bindir@/@pasted_target@ @addrs_pasted@
Restart=always
RestartSec=60s
CapabilityBoundingSet=
NoNewPrivileges=True
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=@path@
PrivateTmp=true
PrivateDevices=true
PrivateUsers=true
ProtectHostname=true
ProtectClock=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectKernelLogs=true
ProtectControlGroups=true
LockPersonality=true
MemoryDenyWriteExecute=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
[Install]
WantedBy=multi-user.target