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)
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)
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
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
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@
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
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