Path: csiph.com!usenet.pasdenom.info!gegeweb.org!newsfeed0.kamp.net!newsfeed.kamp.net!feeder1.cambriumusenet.nl!feed.tweaknews.nl!194.109.133.83.MISMATCH!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.186 X-Spam-Level: * X-Spam-Evidence: '*H*': 0.67; '*S*': 0.04; 'python': 0.11; 'received:10.215': 0.16; 'to:name:python-list@python.org': 0.22; 'header:User-Agent:1': 0.23; "i've": 0.25; 'script': 0.25; "doesn't": 0.30; '(like': 0.30; 'running': 0.33; '(2)': 0.35; 'there': 0.35; 'thanks': 0.36; 'subject:?': 0.36; 'received:10': 0.37; 'to:addr:python-list': 0.38; 'to:addr:python.org': 0.39; 'system.': 0.39; 'dhcp': 0.84; 'etc),': 0.84; 'subject:Check': 0.95 Date: Wed, 21 Jan 2015 16:06:17 -0700 From: Jason Bailey User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 MIME-Version: 1.0 To: "python-list@python.org" Subject: Check for running DHCP daemon? Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [10.215.90.84] X-ClientProxiedBy: ETEXCH2.corp.emerytelcom.com (10.30.90.61) To ETEXCH2.corp.emerytelcom.com (10.30.90.61) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 8 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1421882158 news.xs4all.nl 2831 [2001:888:2000:d::a6]:36032 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:84153 So I've got this python 3 script that needs to know if there is a running DHCP daemon (ISC DHCP server) on the local system. Is there a clean way to do this that (1) doesn't require me to do syscalls to local utilities (like ps, top, etc), and (2) doesn't require any custom modules (stock only)? Thanks