/var/run with pids is also present in FreeBSD 5.x+

But it's just a dumpspace for these things..

It still doesn't add anything useful :) I think there's some syscall to
do what "ps" does basicly. Might be worth looking at, that way you won't
depend on external crap.

Ales

> At least FreeBSD 4 has a pid-file in /var/run:
> 
> $ ls /var/run/
> cron.pid        emacs           ld.so.hints     ppp             sshd.pid
> dev.db          inetd.pid       log             printer         syslog.pid
> dhcpd           isdnd.pid       mountd.pid      run             utmp
> dmesg.boot      ld-elf.so.hints moused.pid      sendmail.pid
> 
> $ cat /var/run/cron.pid
> 122
> 
> $ ps aux|grep cron
> root     122  0,0  0,1  1056  768  ??  Ss   12:14am   0:00,00 /usr/sbin/cron
> 
> Don't know about os version 5 or 6 or 7 though ...
> 
> HTH,
> Marc
> 
> _________________________________________________________________
>      To unsubscribe: mail [EMAIL PROTECTED] with
>                 "unsubscribe" as the Subject
>    archives at http://www.lazarus.freepascal.org/mailarchives

_________________________________________________________________
     To unsubscribe: mail [EMAIL PROTECTED] with
                "unsubscribe" as the Subject
   archives at http://www.lazarus.freepascal.org/mailarchives

Reply via email to