hat jemand einen vorschlag, wie man am besten ein script einrichtet, welches nach bestimmter zeit überprüft, ob ein porgramm (prozess) noch rennt und falls nötig dann das programm neustartet?
ich habs mal probiert:
1. checkoscam.sh in /volume2/oscam/
2. chmod 755 für checkoscam.sh
3. weitere zeile in corontab:
funzt leider nicht
ich habs mal probiert:
1. checkoscam.sh in /volume2/oscam/
#!/bin/sh
ps auxw | grep oscam | grep -v grep > /dev/null
if [ $? != 0 ]
then
cd /volume2/oscam
./oscam - c /volume2/oscam
fi
2. chmod 755 für checkoscam.sh
3. weitere zeile in corontab:
* * * * * root /volume2/oscam/checkoscam.sh
funzt leider nicht
Zuletzt bearbeitet: