#!/bin/sh L3_PATH="/usr/bin/" L3_BACKEND="./l3-backend" case "$1" in start) cd ${L3_PATH} nohup ${L3_BACKEND} > /dev/null 2>&1 & ;; stop) l3_backend_pid=`ps waux | grep -v grep | grep 'l3.backend' | awk '{print $2;}'` if [ -z "$l3_backend_pid" ] then echo "l3-backend is not running" else kill ${mywi_pid} fi ;; restart|reload) $0 stop && $0 start ;; stop|reload|restart|force-reload) ;; *) echo "Usage: $N {start|stop|restart|force-reload}" >&2 exit 1 ;; esac exit 0