Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: watchdog



At 7:18 PM -0400 10/17/04, webmaster wrote:
On Oct 17, 2004, at 18:05, Dan Shoop wrote:

At 12:55 AM -0400 10/17/04, webmaster wrote:
I'd like to set watchdog to watch a couple of processes and restart them if required, anyone have an example code that will do this???

First make sure these are processes that cooperate nicely with watchdog. Not all do.


Second, there's really no example code, like cron you just add an appropriate entry to watchdog.conf to manage the daemon.
--


-dhan

I tried adding the following entry

clamav:respawn:/usr/bin/su clamav -c /usr/bin/amavisd

It tries to continually start the process when it's running, it's a perl script and this may have something to do with it since in the activity monitor it shows as perl by user clamav and not a process named amavisd.

Re-read my first statement.

Try invoking perl scripts using perl explicitly, e.g. /usr/bin/perl /usr/bin/amavisd

In general though this is a misapplication of watchdog.
--

-dhan

------------------------------------------------------------------------
Dan Shoop                                              email@hidden
Consulting Internet Architect                              email@hidden
AIM: iWiring                                     http://www.iwiring.net/
Skype: danshoop                                   http://www.ustsvs.com/

pgp key fingerprint: FAC0 9434 B5A5 24A8 D0AF  12B1 7840 3BE7 3736 DE0B

iWiring designs and supports Internet systems and networks based on
Mac OS X, unix, and Open Source application technologies and offers
24x7, guaranteed support to registered clients, at affordable rates.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macos-x-server mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/macos-x-server/email@hidden

This email sent to email@hidden
References: 
 >watchdog (From: webmaster <email@hidden>)
 >Re: watchdog (From: Dan Shoop <email@hidden>)
 >Re: watchdog (From: webmaster <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.