summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-06-26 14:27:33 +0100
committerJoe Carstairs <me@joeac.net>2026-06-29 07:32:35 +0100
commitb43ea19e1ecdb6e7fe6426d13c75e9ff48f1f0a9 (patch)
tree3db46c37cf4c4abd5b52b49e6d7ec565a86d5652 /Makefile
parentc6ff40e28894417d87ee7858438f28fc262ffb40 (diff)
starts joeac.net services on boot
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index ec74aa0..b4d0763 100644
--- a/Makefile
+++ b/Makefile
@@ -116,7 +116,7 @@ endif
$(foreach module,$(MODULES),$(eval $(install_module_rule)))
$(foreach module,$(MODULES),$(eval $(uninstall_module_rule)))
-~/.config/rc/init.d/joeac.net: openrc/init.d/joeac.net ~/.config/rc/init.d ~/.config/rc/runlevels/default
+~/.config/rc/init.d/joeac.net: openrc/init.d/joeac.net ~/.config/rc/init.d ~/.config/rc/runlevels/default /etc/init.d/user.$(shell whoami) /etc/conf.d/user.$(shell whoami)
rm -f ~/.config/rc/init.d/joeac.net; \
mkdir -p ~/.config/rc/init.d; \
cp openrc/init.d/joeac.net ~/.config/rc/init.d/joeac.net
@@ -126,7 +126,13 @@ $(foreach module,$(MODULES),$(eval $(uninstall_module_rule)))
~/.config/rc/runlevels/default:
mkdir -p ~/.config/rc/runlevels/default
- @echo "now 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\`"
+
+/etc/init.d/user.$(shell whoami):
+ sudo ln -s /etc/init.d/user /etc/init.d/user.$(shell whoami)
+
+/etc/conf.d/user.$(shell whoami): openrc/conf.d/user.$(shell whoami)
+ sudo cp openrc/conf.d/user.$(shell whoami) /etc/conf.d/user.$(shell whoami)
+ sudo rc-update add user.$(shell whoami) default
.PHONY: uninstall_service
uninstall_service: