#!/bin/bash basename=`basename $0` function usage { cat <&1 >> livid-srv.log & ;; stop) killall -q $binary ;; *) usage ;; esac