bundlewrap/bundles/pppd/files/wait-until-stopped

18 lines
218 B
Bash

#!/bin/bash
% for service in sorted(services):
(
while true
do
if systemctl is-active ${service}
then
sleep 1
else
exit 0
fi
done
) &
% endfor
wait