chiark / gitweb /
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 8b0aecd..8f0fdaa 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 79c5ef4..20b9e9e 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