dot

packages and services management
Log | Files | Refs | README

commit ffc864a4bc0dc9bb4b4b72f33e8011d9db264f77
parent e439c43ae6c54fec042f9397354a9c1904545914
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sun, 16 Dec 2018 14:40:33 +0100

s6-rc: use /run as live directory

Diffstat:
Mbin/service-bundle | 2+-
Mbin/service-compile | 2+-
Mbin/service-list | 2+-
Mbin/service-start | 4++--
4 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/bin/service-bundle b/bin/service-bundle @@ -9,7 +9,7 @@ forbacktickx -n x { } importas base x -if -t { if -t { test -f ${base}/type } if { grep longrun -Fxq ${base}/type } } +if -t { if -t { test -f ${base}/type } if { grep bundle -Fxq ${base}/type } } if { mkdir -p ${base} } if { redirfd -w 1 ${base}/type echo bundle } diff --git a/bin/service-compile b/bin/service-compile @@ -8,4 +8,4 @@ importas pwd x if { mkdir -p /var/s6 /var/s6-rc/compiled } if { s6-rc-compile /var/s6-rc/compiled/${time} /var/s6 } -if { s6-rc-update -l /var/s6-rc/live/live /var/s6-rc/compiled/${time} } +if { s6-rc-update -l /run/s6-rc /var/s6-rc/${time} } diff --git a/bin/service-list b/bin/service-list @@ -7,7 +7,7 @@ forbacktickx -n -o 0 x { { s6-rc-db -l /var/s6-rc/live/live list all } { s6-rc -l /var/s6-rc/live/live list $@ } } - pipeline { grep -v ",log$" } + pipeline { sed -n "s/,log$// p" } sort } importas service x diff --git a/bin/service-start b/bin/service-start @@ -1,4 +1,4 @@ #!/usr/bin/env execlineb -elgetpositionals -P 1 +elgetpositionals -s6-rc -l /var/s6/.s6-rc/live -u change $@ +s6-rc -l /var/s6-rc/live/live -u change $@