Re: "watchdog" for a process?
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
|