kpatch/contrib/kpatch.service

13 lines
256 B
SYSTEMD
Raw Normal View History

[Unit]
Description="Apply kpatch kernel patches"
ConditionKernelCommandLine=!kpatch.enable=0
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=PREFIX/sbin/kpatch load --all
ExecStop=PREFIX/sbin/kpatch unload --all
[Install]
WantedBy=multi-user.target