Blame SOURCES/insights-register.service.in

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