firebot/health.sh

8 lines
175 B
Bash
Executable File

#! /bin/sh
## Restart the bot if it's not running
# Gallium assumes everything's in the cwd
cd /home/neale/src/firebot
kill -0 `cat gallium.pid` 2>/dev/null || ./gallium.py