gnokii-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: smsd at startup


From: Jan Derfinak
Subject: Re: smsd at startup
Date: Fri, 12 Aug 2005 21:20:20 +0200 (CEST)

On Thu, 11 Aug 2005, Milan Obuch wrote:

> On Thursday 11 August 2005 14:34, Jan Derfinak wrote:
> > On Wed, 10 Aug 2005, Luke wrote:
> > > hello, is there are standard way of running smsd at startup on freebsd?
> > > How can i use a script to check if smsd is still running, and restart it
> > > if it isn't? faield to find the pid file.
> >
> > Does freebsd have something like "pidof"?
> >
> > "pidof -- find the process ID of a running program."
> >
> > jan
> 
> Do you mean something like this?
> 
> GETPID(2)                 FreeBSD System Calls Manual                GETPID(2)

No, pidof is program not system call. Pidof finds the process id's (pids) of
the named programs. It prints those id's on the standard output.
Seems that you must use combination of ps and awk to check for process ID.

jan

-- 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]