Short status output
Solution 1:
It won't give the same output, but you can use
systemctl is-active apache2
See man systemctl
for details.
It won't give the same output, but you can use
systemctl is-active apache2
See man systemctl
for details.