Mailinglist Archive: opensuse (4570 mails)
| < Previous | Next > |
Re: [SLE] Script to check if an application is running
- From: Randall R Schulz <rschulz@xxxxxxxxx>
- Date: Fri, 18 Nov 2005 01:55:39 +0000 (UTC)
- Message-id: <200511171755.35617.rschulz@xxxxxxxxx>
Bruce, Anders,
On Thursday 17 November 2005 17:52, Anders Johansson wrote:
> ...
>
> > How does one get checkproc to work?
> >
> > ...
>
> Try
>
> checkproc /usr/bin/fetchmail && echo "it's running"
>
> checkproc simply returns a value, which you can then test for, for
> example using if, as in your previous script
Also check out the man page for options and, most of all, the two
aliases and primary modes of operation: absolute path name of
executable (checkproc) and base name of executable (pidofproc).
Randall Schulz
On Thursday 17 November 2005 17:52, Anders Johansson wrote:
> ...
>
> > How does one get checkproc to work?
> >
> > ...
>
> Try
>
> checkproc /usr/bin/fetchmail && echo "it's running"
>
> checkproc simply returns a value, which you can then test for, for
> example using if, as in your previous script
Also check out the man page for options and, most of all, the two
aliases and primary modes of operation: absolute path name of
executable (checkproc) and base name of executable (pidofproc).
Randall Schulz
| < Previous | Next > |