mirror of
https://github.com/dynup/kpatch
synced 2024-12-22 05:10:01 +00:00
use PREFIX for absolute path in service unit
Signed-off-by: Seth Jennings <sjenning@redhat.com>
This commit is contained in:
parent
bfc088ff89
commit
743f70f002
@ -5,8 +5,9 @@ all:
|
||||
install: all
|
||||
$(INSTALL) -d $(SYSTEMDDIR)
|
||||
$(INSTALL) kpatch.service $(SYSTEMDDIR)
|
||||
sed -i 's~PREFIX~$(PREFIX)~' $(SYSTEMDDIR)/kpatch.service
|
||||
|
||||
uninstall:
|
||||
$(RM) -f $(SYSTEMDDIR)/kpatch.service
|
||||
$(RM) $(SYSTEMDDIR)/kpatch.service
|
||||
|
||||
clean:
|
||||
|
@ -4,8 +4,8 @@ Description="Apply kpatch kernel patches"
|
||||
[Service]
|
||||
Type=oneshot
|
||||
RemainAfterExit=yes
|
||||
ExecStart=/usr/sbin/kpatch load --all
|
||||
ExecStop=/usr/sbin/kpatch unload --all
|
||||
ExecStart=PREFIX/sbin/kpatch load --all
|
||||
ExecStop=PREFIX/sbin/kpatch unload --all
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
Loading…
Reference in New Issue
Block a user