Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: "watchdog" for a process?

From: Nicolai Spohrer <nicolai(at)xeve.de>
Date: Wed Sep 19 2007 - 15:15:45 EDT


Bart Silverstrim schrieb:
> Is there a quick and short script, maybe something that can be run in
> Cron, that will look at the process list and if a process has been
> killed or had died will restart the process?

What about

<script>
#!/bin/bash
ps -A | grep "filezilla" || echo "Filezilla not running anymore.. starting it again." >> ~/.fz_checker; filezilla& exit 0
</script>
as cronjob?

greetings

-- 
ubuntu-users mailing list
ubuntu-users@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
Received on Wed Sep 19 15:16:41 2007

This archive was generated by hypermail 2.1.8 : Sat Oct 20 2007 - 10:15:14 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library