summaryrefslogtreecommitdiff
path: root/make/openrc.mk
diff options
context:
space:
mode:
authorJoe Carstairs <me@joeac.net>2026-07-02 09:26:33 +0100
committerJoe Carstairs <me@joeac.net>2026-07-02 09:26:33 +0100
commit15a369767983d5f8caaa2a212b45a465e6cedbbd (patch)
treeda2ccbe5d2ddbb72ce4f6d9a87ddc9c5cf6b1ee1 /make/openrc.mk
parentdcdda64b9e0e96b75c1082f13c79338bf0f1c3d9 (diff)
removes any existing joeac.net openrc service file before installing
Diffstat (limited to 'make/openrc.mk')
-rw-r--r--make/openrc.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/make/openrc.mk b/make/openrc.mk
index 47ddb7f..6648773 100644
--- a/make/openrc.mk
+++ b/make/openrc.mk
@@ -6,6 +6,7 @@ define install_openrc_module_rule =
install_openrc_$(module): $(if $(is_openrc_module),$(openrc_module_target) openrc_add_$(module) openrc_start_$(module))
~/.config/rc/init.d/joeac.net.$(module): ~/.config/rc/init.d/joeac.net ~/.config/rc/runlevels/default
+ rm -f ~/.config/rc/init.d/joeac.net
ln -s $(shell realpath ~)/.config/rc/init.d/joeac.net ~/.config/rc/init.d/joeac.net.$(module)
endef