HEX
Server: Apache
System: Linux just2055.justhost.com 5.14.0-162.23.1.9991722448259.nf.el9.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Jul 31 18:11:45 UTC 2024 x86_64
User: samchal1 (1409)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: //etc/systemd/system/kcare.service
[Unit]

Description=Loads kernelcare patches on startup
DefaultDependencies=no
Wants=network-online.target
After=network-online.target
Before=multi-user.target shutdown.target
Before=sentinelone.service httpd.service sshd.service crond.service exim.service monarx.service pureftpd.service
Conflicts=shutdown.target

[Service]
Type=oneshot
ExecStart=-/usr/bin/kcarectl --smart-update
RemainAfterExit=yes
ExecStop=/bin/sh -c "systemctl list-units --type=service --state=running > /root/kcare_running_at_stop.txt"
ExecStop=-/bin/sh -c "date +'%%s' > /var/cache/kcare/stopped.at"
ExecStop=-/bin/sh -c "rm -rf /var/cache/kcare/.kcareprev.lock"
ExecStop=/bin/sh -c "if [ \"$(systemctl is-system-running 2>/dev/null)\" = stopping ]; then /usr/bin/kcarectl --unload; fi"

[Install]
WantedBy=multi-user.target