aur/nexus-oss/nexus-oss.service
nyyu 321a50da6a
All checks were successful
continuous-integration/drone/push Build is passing
nexus: securize, futur proof
2022-01-02 11:14:31 +01:00

44 lines
927 B
Desktop File

[Unit]
Description=Nexus 3 Repository OSS
After=network.target
[Service]
Type=simple
LimitNOFILE=65536
User=nexus
Group=nexus
RuntimeDirectory=nexus-oss
LogsDirectory=nexus-oss
StateDirectory=nexus-oss
WorkingDirectory=/usr/lib/nexus-oss
ExecStart=/usr/bin/nexus-oss start
Restart=always
RestartSec=5s
AmbientCapabilities=
CapabilityBoundingSet=
LockPersonality=true
NoNewPrivileges=True
SecureBits=noroot-locked
PrivateDevices=true
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProtectSystem=strict
RestrictAddressFamilies=AF_INET AF_INET6 AF_NETLINK AF_UNIX
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallErrorNumber=EPERM
[Install]
WantedBy=multi-user.target