manr: fix
[copyleftie-scripts.git] / svstat
blobe235dbb9c03befe4f76508d5a8743016cb996d96
1 #!/bin/execlineb -WS0
3 backtick -in progname { basename ${0} }
4 multisubstitute {
5         importas home home
6         importas -u USER USER
7         importas -u progname progname
8         elglob -0 systems /var/service/*
10 elglob -0 homes ${home}/service/*
12 pipeline {
13         foreground { if { test ${progname} = svstat } sv s ${systems} }
14         sv s ${homes}
16         pipeline { awk "/^run/ { printf \"%s %s\\n\", \$2, \$5 }" }
17         sed "s/[:;,]//g; s|/var/service/||; s|/home/"${USER}"/service/||"