]> git.ipfire.org Git - thirdparty/fcron.git/commitdiff
fixed @reboot on systemd
authorThibault Godouet <yo8192@users.noreply.github.com>
Sat, 30 Jun 2018 21:37:17 +0000 (22:37 +0100)
committerThibault Godouet <yo8192@users.noreply.github.com>
Sat, 30 Jun 2018 21:37:17 +0000 (22:37 +0100)
Makefile.in
files/fcron.conf.in
script/.gitignore
script/boot-install

index f83dbbc8a1e810c8a6dd8eda8ebb2da82cbc837a..c75c47537c19fba8b7f2297615d215f8aa976b1c 100644 (file)
@@ -98,7 +98,7 @@ endif
 ifeq ($(FCRONDYN), 1)
 all: fcron fcrontab fcrondyn convert-fcrontab files/fcron.conf initscripts documentation
 else
-all: fcron fcrontab convert-fcrontab files/fcron.conf
+all: fcron fcrontab convert-fcrontab files/fcron.conf initscripts documentation
 endif
 
 fcron: $(OBJSD)
@@ -131,7 +131,7 @@ exe_list_test: exe_list.o u_list.o exe_list_test.o log.o subs.o
 
 initscripts:
        @(if test ! -d script; then mkdir script ; fi ; \
-               for F in sysVinit-launcher fcron.sh fcron.init.suse fcron.init.systemd fcron.suspend.sh ; do \
+               for F in sysVinit-launcher fcron.sh fcron.init.suse fcron.init.systemd fcron.init.systemd.reboot fcron.suspend.sh ; do \
                        $(SRCDIR)/script/gen-in.pl $(SRCDIR)/script/$${F}.in script/$${F} ./ ; \
                done)
 
@@ -145,6 +145,7 @@ endif
 ifneq ($(SYSTEMD_DIR), no)
        if test ! -d $(DESTDIR)$(SYSTEMD_DIR); then $(INSTALL) -m 755 -d $(DESTDIR)$(SYSTEMD_DIR) ; fi
        $(INSTALL) -m 644 script/fcron.init.systemd $(DESTDIR)$(SYSTEMD_DIR)/fcron.service
+       $(INSTALL) -m 644 script/fcron.init.systemd.reboot $(DESTDIR)$(SYSTEMD_DIR)/fcronreboot.service
 endif
 
 install-staged: all
@@ -271,7 +272,7 @@ ciclean: clean
 
 vclean: ciclean
        rm -f config.log config.status config.h config.cache Makefile PREVIOUS_VERSION \
-            files/fcron.conf script/fcron.init.suse script/fcron.init.systemd \
+            files/fcron.conf script/fcron.init.suse script/fcron.init.systemd script/fcron.init.systemd.reboot \
             script/fcron.sh script/sysVinit-launcher
        $(MAKE) -C doc clean
 
index 7b6c292f7ade3263c2e5a0a792595274cc66ec82..f3bee225fa40b00823c58f69ea284faae4780185 100644 (file)
@@ -8,6 +8,7 @@
 fcrontabs      =       @@FCRONTABS@
 
 # The locations of the pid file, suspend file and the fifo file
+# Note: if you change these paths, you will need to change your start-up scripts
 pidfile                =       @@PIDFILE@
 suspendfile    =       @@SUSPEND_FILE@
 fifofile       =       @@FIFOFILE@
index 9ddd62a91ad62a669f977e36b75d21d69fbcc79f..148aafab49588fc55894038107415b3579dbcb76 100644 (file)
@@ -3,4 +3,5 @@ fcron.sh
 sysVinit-launcher
 fcron.init.suse
 fcron.init.systemd
+fcron.init.systemd.reboot
 fcron.suspend.sh
index 93c2cf5b29181cdbe04e554aeff42e2bec7e15fb..a7bdfb4a87c4e4680cd0723dfcce112aca550bd8 100755 (executable)
@@ -186,7 +186,10 @@ if test \( ! "$INSTALLED" -eq 1 \) -a \( "$SYSTEMD_ROOTDIR" != "" \); then
   fi
   if test \( -z "$INSTALL" \) -o \( "$INSTALL" = "y" \); then
     $INSPROG -c -m 755 script/fcron.init.systemd $SYSTEMD_ROOTDIR/system/fcron.service
+    $INSPROG -c -m 755 script/fcron.init.systemd.reboot $SYSTEMD_ROOTDIR/system/fcronreboot.service
     systemctl daemon-reload
+    systemctl enable fcron.service
+    systemctl enable fcronreboot.service
     INSTALLED=1
     INSTALL_TYPE=SYSTEMD
   else
@@ -359,7 +362,7 @@ if test $NEED_UPDATE -eq 0; then
   fi
   if test \( -z "$RESTART" \) -o \( "$RESTART" = "y" \); then
     $KILL
-    sleep 2   # wait for fcron to stop
+    sleep 5   # wait for fcron to stop
     $CMD
   fi