Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugal-tweak.git;a=commitdiff;h=f98f872a1fe86d6e2ba400326f733c7d3d464a76
commit f98f872a1fe86d6e2ba400326f733c7d3d464a76 Author: bouleetbil <bouleet...@frogdev.info> Date: Sun Dec 19 15:04:48 2010 +0100 *use pidof for know if systemd is used *pid of systemd should be 1 (first program) diff --git a/frugal-mono-tools/Systemd.cs b/frugal-mono-tools/Systemd.cs index 57c8ec3..197a1fc 100644 --- a/frugal-mono-tools/Systemd.cs +++ b/frugal-mono-tools/Systemd.cs @@ -15,14 +15,18 @@ // * along with this program; if not, write to the Free Software // * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. // */ -using System; +using System; + namespace frugalmonotools { public static class Systemd - { + { + + public static bool IsActive() { - if (Outils.getoutput("ps aux | grep systemd") != "" ) + + if (Outils.getoutput("pidof systemd") == "1" ) return true; else return false; _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git