Merge branch 'master' of pi2:vincent/conf2
icommit
This commit is contained in:
commit
79d3d42b96
@ -12,12 +12,12 @@ for service in ${SERVICES[@]}
|
|||||||
do
|
do
|
||||||
status=$(systemctl is-active $service)
|
status=$(systemctl is-active $service)
|
||||||
|
|
||||||
if [ $status = "inactive" ]
|
if [ $status = "active" ]
|
||||||
then
|
then
|
||||||
echo -e "$service is $status"
|
echo -e "$service is $status"
|
||||||
echo $(journalctl -u $service --lines=10 -q)
|
|
||||||
else
|
else
|
||||||
echo -e "$service is $status"
|
echo -e "$service is $status"
|
||||||
|
echo $(journalctl -u $service --lines=10 -q)
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user