Jeff Mahoney
b16a5f1b3e
- add memory limit to systemd unit OBS-URL: https://build.opensuse.org/request/show/1060003 OBS-URL: https://build.opensuse.org/package/show/security:sensor/velociraptor?expand=0&rev=34
26 lines
527 B
Desktop File
26 lines
527 B
Desktop File
[Unit]
|
|
Description=Velociraptor Client Service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=root
|
|
Group=root
|
|
UMask=0027
|
|
MemoryHigh=4G
|
|
MemoryMax=8G
|
|
EnvironmentFile=-/etc/sysconfig/velociraptor-client
|
|
ExecStart=/usr/bin/velociraptor client --config /etc/velociraptor/client.config $VELOCIRAPTOR_CLIENT_OPTS
|
|
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectHostname=true
|
|
ProtectClock=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectControlGroups=true
|
|
MemoryDenyWriteExecute=true
|
|
Restart=on-failure
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|