Is it possible to check if a service is either enabled, disabled, running or stopped?
I know I can use service $app status
to see if it's running or dead, but how can I tell if the service has been disabled ?
I am running OpenSUSE.
Is it possible to check if a service is either enabled, disabled, running or stopped?
I know I can use service $app status
to see if it's running or dead, but how can I tell if the service has been disabled ?
I am running OpenSUSE.
systemctl is-enabled $app
Thanks
– Tom Jul 21 '20 at 14:03