Blame SOURCES/insights-register.service.in

588af0
# This file is part of insights-client.
588af0
#
588af0
# Any changes made to this file will be overwritten during a software update. To
588af0
# override a parameter in this file, create a drop-in file, typically located at
588af0
# /etc/systemd/system/insights-register.service.d/override.conf. Put the desired
588af0
# overrides in that file and reload systemd. The next time this service is run
588af0
# (either manually or via a systemd timer), the overridden values will be in
588af0
# effect.
588af0
#
588af0
# For more information about systemd drop-in files, see systemd.unit(5).
588af0
588af0
[Unit]
588af0
Description=Automatically Register with Red Hat Insights
588af0
Documentation=man:insights-client(8)
588af0
After=network-online.target
588af0
588af0
[Service]
588af0
Type=simple
588af0
ExecStart=@bindir@/insights-client --register
588af0
Restart=no
588af0
WatchdogSec=900
588af0
CPUQuota=30%
588af0
MemoryLimit=2G
588af0
TasksMax=300
588af0
BlockIOWeight=100
588af0
ExecStartPost=-/bin/bash -c "echo 2G >/dev/null 2>&1 > /sys/fs/cgroup/memory/system.slice/insights-register.service/memory.memsw.limit_in_bytes"
588af0
ExecStartPost=-/bin/bash -c "echo 1G >/dev/null 2>&1 > /sys/fs/cgroup/memory/system.slice/insights-register.service/memory.soft_limit_in_bytes"
588af0
ExecStopPost=/bin/systemctl mask --now insights-register.path