home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   linux.debian.bugs.dist      Ohh some weird Debian bug report thing      28,835 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 27,050 of 28,835   
   Petter Reinholdtsen to All   
   Bug#1127467: sitesummary: correct debdif   
   10 Feb 26 12:50:01   
   
   From: pere@hungry.com   
      
   [Hector Cao]   
   > -runlevel > runlevel   
   > +if command -v systemctl >/dev/null 2>&1 && [ -d /run/systemd/system ]; then   
   > +    systemctl list-units --type=target --state=active > runlevel   
   > +elif command -v runlevel >/dev/null 2>&1; then   
   > +    runlevel > runlevel   
   > +fi   
      
   I believe this is the wrong approach.  The systemctl command is not   
   presenting the current runlevel, it is presenting something else, and it   
   belong in a diffferent file name.   
      
   If the runlevel command do not exist, the runlevel file should not be   
   created.  Changing the content of well known files place too much   
   guesswork on the client code parsing the collected information.   
      
   --   
   Happy hacking   
   Petter Reinholdtsen   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca