change service name master 1.2
authorRalph Ronnquist <rrq@rrq.au>
Tue, 3 Dec 2024 14:11:56 +0000 (01:11 +1100)
committerRalph Ronnquist <rrq@rrq.au>
Tue, 3 Dec 2024 14:11:56 +0000 (01:11 +1100)
Makefile
overlay-boot@.service [new file with mode: 0644]

index dba6dcf3b52ee25e69d936cc5fd4e0f3cb4f3acb..1e9556db27b58ebbd6fd9591993819412b5fb7b5 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ VARLIBFILES += overlay-diskfile
 VARLIBFILES += overlay-share
 INITFILES = subhosts
 ETCFILES = subhosts.conf
 VARLIBFILES += overlay-share
 INITFILES = subhosts
 ETCFILES = subhosts.conf
-SRVFILES = subhost@.service
+SRVFILES = overlay-boot@.service
 
 # The default is to build asm/reaper
 REAPER = src/reaper
 
 # The default is to build asm/reaper
 REAPER = src/reaper
diff --git a/overlay-boot@.service b/overlay-boot@.service
new file mode 100644 (file)
index 0000000..c15b974
--- /dev/null
@@ -0,0 +1,10 @@
+[Unit]
+Description=Start overlay-boot subhost instance %i
+Documentation=man:overlay-boot(8)
+
+[Service]
+ExecStart=/usr/sbin/overlay-boot %i
+ExecStop=/usr/sbin/overlay-stop %i
+
+[Install]
+WantedBy=multi-user.target