gnokii-users
[Top][All Lists]
Advanced

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

Re: smsd at startup


From: Milan Obuch
Subject: Re: smsd at startup
Date: Thu, 11 Aug 2005 15:23:55 +0200
User-agent: KMail/1.8

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)

NAME
     getpid, getppid -- get parent or calling process identification

LIBRARY
     Standard C Library (libc, -lc)

SYNOPSIS
     #include <sys/types.h>
     #include <unistd.h>

     pid_t
     getpid(void);

     pid_t
     getppid(void);

DESCRIPTION
     Getpid() returns the process ID of the calling process.  Though the ID is
     guaranteed to be unique, it should NOT be used for constructing temporary
     file names, for security reasons; see mkstemp(3) instead.

     Getppid() returns the process ID of the parent of the calling process.

ERRORS
     The getpid() and getppid() functions are always successful, and no return
     value is reserved to indicate an error.

SEE ALSO
     gethostid(3)

STANDARDS
     The getpid() and getppid() function calls are expected to conform to
     ISO/IEC 9945-1:1990 (``POSIX.1'').

HISTORY
     A getpid() function call appeared in Version 7 AT&T UNIX.

FreeBSD 4.11                     June 4, 1993                     FreeBSD 4.11

Milan




reply via email to

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