Blame SOURCES/insights-register.service.in

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