Blame SOURCES/insights-register.service.in

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