#!/bin/sh
if [ $# -eq 0 -o x$1 = xstart ]; then
  if [ -x /usr/local/hybserv/hybserv ]; then
    su -fm hybserv -c /usr/local/hybserv/hybserv && echo ' hybserv'
  fi
fi
if [ x$1 = xstop ]; then
  if [ -f /usr/local/hybserv/hybserv.pid ]; then
    kill `cat /usr/local/hybserv/hybserv.pid`
  else
    # oh well
    killall hybserv
  fi
fi



syntax highlighted by Code2HTML, v. 0.9.1