dot

packages and services management
Log | Files | Refs | README

commit 89946bc56a1a6df14c6eee8083844d85da01b86c
parent 7e57b394623dd6b9c9865e0ae252dd78518dc5d9
Author: Josuah Demangeon <mail@josuah.net>
Date:   Tue, 27 Nov 2018 01:17:51 +0100

bin/service-status: do not show big gap between services

Diffstat:
Mbin/service-status | 9+++------
1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/bin/service-status b/bin/service-status @@ -1,6 +1,8 @@ #!/usr/bin/env execlineb elgetpositionals -P 1 +if { printf "\n" } + fdmove -c 2 1 forbacktickx x { pipeline { s6-rc -l /var/s6/.s6-rc/live list $@ } @@ -8,19 +10,14 @@ forbacktickx x { } importas -n -d "\n" sv x -if { printf "\n \033[1m%s\033[m\n " ${sv} } +if { printf " \033[1m%s\033[m\n " ${sv} } if { s6-svstat /run/s6/${sv},x } - if { printf "\n" } - if { backtick -n x { s6-svstat -o pid /run/s6/${sv},x } importas x x ptree ${x} } - if { printf "\n" } - if { pipeline { tail /var/log/${sv}/current } s6-tai64nlocal } - if { printf "\n" }