3 Commits

3 changed files with 14 additions and 15 deletions

View File

@@ -118,8 +118,8 @@ install-runit:
$(LN) $(RUNDIR)/reboot $(DESTDIR)$(RUNITDIR)/
$(LN) $(RUNDIR)/stopit $(DESTDIR)$(RUNITDIR)/
install -d $(DESTDIR)$(RCDIR)
install -m755 $(RCLOCAL) $(DESTDIR)$(RCDIR)
install -d $(DESTDIR)$(SYSCONFDIR)
install -m755 $(RCLOCAL) $(DESTDIR)$(SYSCONFDIR)
install -d $(DESTDIR)$(BINDIR)
install -m755 $(BIN) $(DESTDIR)$(BINDIR)

View File

@@ -10,13 +10,13 @@ for arg in $(cat /proc/cmdline); do
fi
done
if [ -x @RCDIR@/rc.local ] && grep -qv '^#' @RCDIR@/rc.local; then
@RCDIR@/rc.local
echo "==> @RCDIR@/rc.local has been deprecated. Please move the contents"
echo " of the file to @SYSCONFDIR@/rc.local, since the next version of"
echo " runit-artix won't read @RCDIR@/rc.local anymore."
fi
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
# OpenRC compatibility
for script in /etc/local.d/*.start; do
[ -x "$script" ] && "$script"
done
runsvchdir "${runlevel}"
ln -s @RUNSVDIR@/current @SERVICEDIR@

View File

@@ -11,13 +11,12 @@ stat_busy "Exit services ..."
sv exit @RUNDIR@/service/*
stat_done
if [ -x @RCDIR@/rc.shutdown ] && grep -qv '^#' @RCDIR@/rc.shutdown; then
@RCDIR@/rc.shutdown
echo "==> @RCDIR@/rc.shutdown has been depreacted. Please move the contents"
echo " of the file to @SYSCONFDIR@/rc.shutdown since the next version of"
echo " runit-artix won't read @RCDIR@/rc.shutdown anymore."
fi
[ -x @SYSCONFDIR@/rc.local ] && @SYSCONFDIR@/rc.local
# OpenRC compatibility
for script in /etc/local.d/*.stop; do
[ -x "$script" ] && "$script"
done
[ -x @SYSCONFDIR@/rc.shutdown ] && @SYSCONFDIR@/rc.shutdown
run_shutdown