27 lines
586 B
SYSTEMD
27 lines
586 B
SYSTEMD
|
[Unit]
|
||
|
Description=Velociraptor Client Service
|
||
|
|
||
|
[Service]
|
||
|
Type=simple
|
||
|
User=root
|
||
|
Group=root
|
||
|
UMask=0027
|
||
|
MemoryHigh=4G
|
||
|
MemoryMax=8G
|
||
|
EnvironmentFile=-/etc/sysconfig/velociraptor-client
|
||
|
Environment=TMPDIR=/var/lib/velociraptor-client/tmp
|
||
|
ExecStart=/usr/bin/velociraptor-client 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
|