#!/bin/bash MODE=$1 LC_MESSAGES=C if [ -z $MODE ]; then echo "Usage: start mode" exit 1 fi cd /var/opt/abonbot ./abonbot.pl daemon --mode $MODE --listen http://127.0.0.1:2218