Newer
Older
ibsystem / check_ibvunit.sh
Wojciech Konieczny on 8 Dec 252 bytes Dodanie konfiguracji ibsystem do repozytorium
#!/bin/bash

appname=ibvunit

app_pid=`pidof $appname`
caller=`whoami`

if [ -z  "$app_pid" ]; then
  /ibsystem/run_$appname.sh
  echo >> /ibsystem/restart.log $(date) $appname restart $caller
  echo $appname restart
else
  echo $appname is running
fi