Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: How best to see if syslogd is running?

by BravoTwoZero (Scribe)
on Jan 04, 2005 at 16:28 UTC ( #419288=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $pid = "/var/log/syslog.pid";
    unless (stat($pid)) { print "$pid not running\n"; }
    
  2. or download this
    $pid = "/var/run/syslogd.pid";
    if (stat($pid)) {
    ...
    } else {
            print "$pid not running\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://419288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2021-02-26 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?