File: //lib/systemd/system/sentinelone.service
[Unit]
Description=Monitor SentinelOne Agent
After=uptrack-prefetch.service uptrack.service
RefuseManualStop=yes
[Service]
WorkingDirectory=/opt/sentinelone/bin
Type=exec
ExecStart=/opt/sentinelone/bin/sentinelone-agent
WatchdogSec=30s
Restart=on-failure
# NOTICE:
# 1) prefer StartLimitInterval on StartLimitIntervalSec since the last
# is supported from systemd v230 and above.
# 2) following options are synchronized with similar parameters at sysvinit watchdog
# this is to ensure similar behavior of systemd and sysvinit watcgdogs
StartLimitInterval=90
StartLimitBurst=4
RestartSec=4
# Enable memory accounting to create the cgroup files
MemoryAccounting=yes
ExecStop=/opt/sentinelone/bin/sentinelctl control stop
NotifyAccess=all
# Dont limit the maximum number of tasks that may be created
TasksMax=infinity
[Install]
WantedBy=multi-user.target