2020-09-06 14:16:54 +02:00
|
|
|
[Unit]
|
|
|
|
Description=Nexus 3 Repository OSS
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
2022-01-02 10:37:09 +01:00
|
|
|
Type=simple
|
2020-09-06 14:16:54 +02:00
|
|
|
LimitNOFILE=65536
|
|
|
|
User=nexus
|
|
|
|
Group=nexus
|
2022-01-02 10:37:09 +01:00
|
|
|
RuntimeDirectory=nexus-oss
|
|
|
|
LogsDirectory=nexus-oss
|
|
|
|
StateDirectory=nexus-oss
|
|
|
|
WorkingDirectory=/usr/lib/nexus-oss
|
2020-09-06 14:16:54 +02:00
|
|
|
ExecStart=/usr/bin/nexus-oss start
|
2022-01-02 10:37:09 +01:00
|
|
|
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
|
2020-09-06 14:16:54 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|