From cc25a91cf13803bcc8d827807b316685a1f242e6 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Fri, 26 Jun 2026 09:45:19 +0100 Subject: [PATCH] adds advisory openrc/user-runlevel-default --- Makefile | 6 +++++- openrc/user-runlevel-default | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 openrc/user-runlevel-default diff --git a/Makefile b/Makefile index 078ac50..0d48ea9 100644 --- a/Makefile +++ b/Makefile @@ -55,7 +55,7 @@ login_registry: podman login $(REGISTRY_DOMAIN) .PHONY: install -install: install_service install_crontab +install: install_service install_crontab next_steps .PHONY: uninstall uninstall: uninstall_service uninstall_crontab @@ -88,6 +88,10 @@ uninstall_crontab: > crontab.tmp sudo mv crontab.tmp /etc/periodic/daily/joeac.net +.PHONY: next_steps +next_steps: + @echo "Make sure that your user's default runlevel is triggered by OpenRC. If this isn't already happening, edit openrc/user-default-runlevel with your username, copy it to /etc/init.d, and add it to the system's default runlevel with \`rc-service add default\`." + .PHONY: clean clean: $(foreach module,$(MODULES),$(MAKE) --directory=$(module) clean;) diff --git a/openrc/user-runlevel-default b/openrc/user-runlevel-default new file mode 100644 index 0000000..5554db0 --- /dev/null +++ b/openrc/user-runlevel-default @@ -0,0 +1,6 @@ +#!/sbin/openrc + +description="start default runlevel" +command="openrc" +command_args="-U default" +command_user=""