2016-05-06 08:59:58 +01:00

14 lines
246 B
Bash

#!/bin/bash
function handle_signal {
PID=$!
echo "received signal. PID is ${PID}"
kill -s SIGHUP $PID
}
trap "handle_signal" SIGINT SIGTERM SIGHUP
echo "starting Nadeko"
cd /root/NadekoBot
mono NadekoBot.exe & wait
echo "stopping Nadeko"