]> err.no Git - systemd/commitdiff
fedora: we must call the halt script with a symlink of reboot for rebooting
authorLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 00:05:28 +0000 (02:05 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 20 May 2010 00:05:28 +0000 (02:05 +0200)
Makefile.am
units/fedora/reboot.service

index 8b0aecd269d3eb9b3ca81bc8ca9fa87ca159c5a3..8f0fdaab2e96df733c1547eb3252eb15ad4c6394 100644 (file)
@@ -477,6 +477,8 @@ if TARGET_FEDORA
        ( cd $(DESTDIR)$(systemunitdir) && \
                rm -f local.service && \
                $(LN_S) rc-local.service local.service )
+       ( cd $(DESTDIR)/etc/init.d && \
+               $(LN_S) halt reboot > /dev/null 2>&1 || true )
 endif
 
 DISTCHECK_CONFIGURE_FLAGS = \
index 79c5ef41ca7ab1b28ac7686db01bad641263d0f7..20b9e9e529742ebb83b4484ebf279415e7b0bccc 100644 (file)
@@ -14,4 +14,4 @@ After=shutdown.target killall.service
 Type=finish
 ValidNoProcess=yes
 Environment=RUNLEVEL=6
-ExecStart=@/etc/init.d/halt reboot start
+ExecStart=/etc/init.d/reboot start