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
Share:
59

Related videos on Youtube

CodeWriter
Author by

CodeWriter

Updated on September 18, 2022

Comments

  • CodeWriter
    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.

  • CodeWriter
    CodeWriter over 8 years
    This works perfect. Thank you so much. I can't believe I missed that in the documentation. Cheers!
  • Snowcrash
    Snowcrash over 7 years
    Yes. So systemctl list-unit-files --type=service | grep tgtd which gives tgtd.service enabled. Not quite as succinct but does the job.
  • JdeBP
    JdeBP over 7 years
    list-unit-files takes a pattern. There is no need for grep.