45 lines
925 B
SYSTEMD
45 lines
925 B
SYSTEMD
|
[Unit]
|
||
|
Description=Prometheus exporter for smbmc metrics
|
||
|
Requires=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/bin/smbmc-exporter
|
||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||
|
User=smbmc-exporter
|
||
|
Group=smbmc-exporter
|
||
|
Restart=on-failure
|
||
|
RestartSec=5s
|
||
|
|
||
|
NoNewPrivileges=true
|
||
|
LimitNOFILE=1048576
|
||
|
UMask=0077
|
||
|
|
||
|
ProtectSystem=strict
|
||
|
ProtectHome=true
|
||
|
PrivateUsers=yes
|
||
|
PrivateTmp=true
|
||
|
PrivateDevices=true
|
||
|
ProtectHostname=true
|
||
|
ProtectClock=true
|
||
|
ProtectKernelTunables=true
|
||
|
ProtectKernelModules=true
|
||
|
ProtectKernelLogs=true
|
||
|
ProtectControlGroups=true
|
||
|
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
|
||
|
RestrictNamespaces=true
|
||
|
LockPersonality=true
|
||
|
MemoryDenyWriteExecute=true
|
||
|
RestrictRealtime=true
|
||
|
RestrictSUIDSGID=true
|
||
|
RemoveIPC=true
|
||
|
CapabilityBoundingSet=
|
||
|
AmbientCapabilities=
|
||
|
|
||
|
SystemCallFilter=@system-service
|
||
|
SystemCallFilter=~@privileged @resources
|
||
|
SystemCallArchitectures=native
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|