Blame SOURCES/insights-register.service.in

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