chkconfig equivalent - RHEL7
59
You can check if it is enabled or disables by using this command:
systemctl list-unit-files --type=service
Where "--type=service
" helps you narrow it down to services only.
And you can enable/disable services with commands:
systemctl enable httpd
systemctl disable httpd
Related videos on Youtube
Author by
CodeWriter
Updated on September 18, 2022Comments
-
CodeWriter almost 2 years
When doing this:
casperjs somescript.js --number=736280854938322517687376855643288785
and in the code:
var casper = require('casper').create(); var value = casper.cli.get("number"); console.log(value); // yields: 7.3628085493832246e+35 // want: 736280854938322517687376855643288785
I've looked and looked, pondered and hacked, but I'm not having much luck. The easy solution seems to be simply converting the number into a string. Or passing the number in as a string. But the syntax for this eludes me.
-
Admin over 7 yearsNot the exactly answer. I use
insserv -s | grep whatever
-
magor over 7 yearscheck here for a bit more details about Systemd : unix.stackexchange.com/questions/158872/…
-
-
CodeWriter over 8 yearsThis works perfect. Thank you so much. I can't believe I missed that in the documentation. Cheers!
-
Snowcrash over 7 yearsYes. So
systemctl list-unit-files --type=service | grep tgtd
which givestgtd.service enabled
. Not quite as succinct but does the job. -
JdeBP over 7 years
list-unit-files
takes a pattern. There is no need forgrep
.