]> jfr.im git - erebus.git/blame - croncheck.sh
bot - add handler if command is not known
[erebus.git] / croncheck.sh
CommitLineData
1e0639df 1#!/bin/bash
1e0639df 2
124f0dcf 3cd "$(dirname $(readlink -f $0))"
694d91f3 4exec &>nohup.out
1e0639df 5
6if ! kill -0 "$(cat pidfile)"; then
694d91f3 7 nohup ./run.sh &
1e0639df 8fi