Blame SOURCES/insights-register.service.in

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