fedora: add compat unit for /sbin/halt.local
This commit is contained in:
parent
b4f27ccc63
commit
ddd941ed5c
|
@ -280,6 +280,7 @@ if TARGET_FEDORA
|
||||||
dist_systemunit_DATA += \
|
dist_systemunit_DATA += \
|
||||||
units/fedora/prefdm.service \
|
units/fedora/prefdm.service \
|
||||||
units/fedora/rc-local.service \
|
units/fedora/rc-local.service \
|
||||||
|
units/fedora/halt-local.service \
|
||||||
units/fedora/sysinit.service \
|
units/fedora/sysinit.service \
|
||||||
units/fedora/single.service \
|
units/fedora/single.service \
|
||||||
units/fedora/plymouth-quit.service \
|
units/fedora/plymouth-quit.service \
|
||||||
|
@ -1118,7 +1119,8 @@ if TARGET_FEDORA
|
||||||
$(DESTDIR)$(systemunitdir)/poweroff.target.wants \
|
$(DESTDIR)$(systemunitdir)/poweroff.target.wants \
|
||||||
$(DESTDIR)$(systemunitdir)/halt.target.wants \
|
$(DESTDIR)$(systemunitdir)/halt.target.wants \
|
||||||
$(DESTDIR)$(systemunitdir)/rescue.target.wants \
|
$(DESTDIR)$(systemunitdir)/rescue.target.wants \
|
||||||
$(DESTDIR)$(systemunitdir)/multi-user.target.wants
|
$(DESTDIR)$(systemunitdir)/multi-user.target.wants \
|
||||||
|
$(DESTDIR)$(systemunitdir)/final.target.wants
|
||||||
( cd $(DESTDIR)$(pkgsysconfdir)/system && \
|
( cd $(DESTDIR)$(pkgsysconfdir)/system && \
|
||||||
rm -f display-manager.service && \
|
rm -f display-manager.service && \
|
||||||
$(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
|
$(LN_S) $(systemunitdir)/prefdm.service display-manager.service )
|
||||||
|
@ -1128,6 +1130,9 @@ if TARGET_FEDORA
|
||||||
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
|
( cd $(DESTDIR)$(pkgsysconfdir)/system/multi-user.target.wants && \
|
||||||
rm -f rc-local.service && \
|
rm -f rc-local.service && \
|
||||||
$(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
|
$(LN_S) $(systemunitdir)/rc-local.service rc-local.service )
|
||||||
|
( cd $(DESTDIR)$(systemunitdir)/final.target.wants && \
|
||||||
|
rm -f halt-local.service && \
|
||||||
|
$(LN_S) $(systemunitdir)/halt-local.service halt-local.service )
|
||||||
( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
|
( cd $(DESTDIR)$(systemunitdir)/rescue.target.wants && \
|
||||||
rm -f single.service && \
|
rm -f single.service && \
|
||||||
$(LN_S) $(systemunitdir)/single.service single.service )
|
$(LN_S) $(systemunitdir)/single.service single.service )
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
# This file is part of systemd.
|
||||||
|
#
|
||||||
|
# systemd is free software; you can redistribute it and/or modify it
|
||||||
|
# under the terms of the GNU General Public License as published by
|
||||||
|
# the Free Software Foundation; either version 2 of the License, or
|
||||||
|
# (at your option) any later version.
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=/sbin/halt.local Compatibility
|
||||||
|
ConditionPathExists=/sbin/halt.local
|
||||||
|
DefaultDependencies=no
|
||||||
|
After=shutdown.target
|
||||||
|
Before=final.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/sbin/halt.local
|
||||||
|
TimeoutSec=0
|
||||||
|
StandardOutput=tty
|
||||||
|
RemainAfterExit=yes
|
|
@ -7,12 +7,14 @@
|
||||||
|
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=/etc/rc.local Compatibility
|
Description=/etc/rc.local Compatibility
|
||||||
|
ConditionPathExists=/etc/rc.local
|
||||||
|
|
||||||
# The rcN.d symlink uses the name "local" while the script itself is
|
# The rcN.d symlink uses the name "local" while the script itself is
|
||||||
# called "rc.local", hence carry both names here.
|
# called "rc.local", hence carry both names here.
|
||||||
Names=rc-local.service local.service
|
Names=rc-local.service local.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Type=forking
|
||||||
ExecStart=/etc/rc.local start
|
ExecStart=/etc/rc.local start
|
||||||
TimeoutSec=0
|
TimeoutSec=0
|
||||||
StandardOutput=tty
|
StandardOutput=tty
|
||||||
|
|
Loading…
Reference in New Issue