summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-26 09:45:19 +0100
committerJoe Carstairs <me@joeac.net>2026-06-26 09:45:19 +0100
commitcc25a91cf13803bcc8d827807b316685a1f242e6 (patch)
tree7e61045b6044aa5557c70f24f973b6b2afaa6788
parent13c909f085da318e39ed9de363887c94038725cf (diff)
adds advisory openrc/user-runlevel-default
-rw-r--r--Makefile6
-rw-r--r--openrc/user-runlevel-default6
2 files changed, 11 insertions, 1 deletions
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 <SERVICE> 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 <USER> default runlevel"
+command="openrc"
+command_args="-U default"
+command_user="<USER>"