In the good old days you would use chkconfig
to see if a service was enabled for a run level. E.g.
chkconfig --list tgtd
However, now you're supposed to use systemctl
. But I can't get systemctl
to give a similarly succinct output as chkconfig
.
Any suggestions on how you do so?
insserv -s | grep whatever
– Feb 07 '17 at 12:47