Actually I am doing some automation and need way to check service status at the end of script.
I do like this -
echo "FINAL SERVICE RUNNING STATUS"
echo " "
echo "Openlitespeed status -"#
### No cmd found
echo "ProFTPD status -"
systemctl show -p SubState proftpd | sed 's/SubState=//g'
echo...