committed by
William Hubbs
parent
f81bb7e2c4
commit
3054046e18
@@ -64,7 +64,7 @@ if [ -z $TERM -o $TERM = "dumb" ]; then
|
||||
fi
|
||||
|
||||
# Gather list of candidate services s6-supervise may be supervising
|
||||
# filter for folders and symlinks at /run/openrc/s6-scan/* ommiting output starting with '.'
|
||||
# filter for folders and symlinks at /run/openrc/s6-scan/* omitting output starting with '.'
|
||||
services="$(find $scandir -maxdepth 1 -mindepth 1 \( -type d -or -type l \) | awk -F'/' '{ if ( $NF !~ "^\\." ) print $NF}')"
|
||||
if [ -z "$services" ]; then
|
||||
printf "s6 found no services configured for supervision\n"
|
||||
@@ -72,7 +72,7 @@ if [ -z "$services" ]; then
|
||||
fi
|
||||
|
||||
# Gather status for each service from s6-svstat
|
||||
# write to tmp file in memory for non I/O bound repeatative access
|
||||
# write to tmp file in memory for non I/O bound repetitive access
|
||||
rm -f $statfile 2>/dev/null
|
||||
for service in $services ; do
|
||||
echo "$service $(s6-svstat ${scandir}/${service})" >> $statfile
|
||||
|
||||
Reference in New Issue
Block a user