/
etc
/
systemd
/
system
/
Upload File
HOME
[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