Help for this page

Select Code to Download


  1. or download this
    #create the bash script to determine whic Init System
      my $tmpScript = "/tmp/whichSysInit";
    ...
      #if ($rslt =~/using\s(?<si>\S+)/){
      #  my $sysInit= $+{si};
    
  2. or download this
    /tmp/whichSysInit: 2: /tmp/whichSysInit: [[: not found
    /tmp/whichSysInit: 1: /tmp/whichSysInit: systemctl: not found
    ...
    /tmp/whichSysInit: 6: /tmp/whichSysInit: [[: not found
    Can not determine System Init mechanism <>.
     Exiting