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