OSDN Git Service

more work on the runit service.
authormobinmob <mobinmob@disroot.org>
Sun, 3 Jan 2021 14:22:47 +0000 (16:22 +0200)
committermobinmob <mobinmob@disroot.org>
Sat, 27 Nov 2021 16:53:41 +0000 (18:53 +0200)
srcpkgs/boot-66serv/files/runit

index fe741ff..d3d60bb 100644 (file)
@@ -1,5 +1,5 @@
 [main]
-@type = longrun
+@type = classic
 @version = @VERSION@
 @description = "runit"
 @user = (root)
@@ -14,20 +14,19 @@ PATH=/usr/bin:/usr/sbin
 runlevel=66
 
 runsvchdir "${runlevel}"
-mkdir -p /run/runit/runsvdir
-ln -s /etc/runit/runsvdir/current /run/runit/runsvdir/current
-
-exec env - PATH=$PATH \
-    runsvdir -P /run/runit/runsvdir/current 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
+s6-mkdir -v -p /run/runit/runsvdir
+s6-ln -s /etc/runit/runsvdir/current /run/runit/runsvdir/current
 
+exec s6-env PATH=$PATH \
+    runsvdir -P /run/runit/runsvdir/current
  )
 
 [stop]
 @build = custom
 @shebang = ( "/bin/sh" )
 @execute = ( 
- sv force-stop /var/service/*
- sv exit /var/service/* )
      sv force-stop /var/service/*
      sv exit /var/service/* )
 
 [logger]
 @backup = 3