#!/bin/sh
CAMNAME="Grupo Socios Multi multics"
# end
 
# This method start Grupo Socios Multi multics
start_cam ()
{
echo -n "Iniciar Grupo Socios Multi multics"
/bin/multics.x64 -C /var/etc/multics.cfg &
sleep 2
echo " : done"
}

# This method stop Grupo Socios Multi multics
stop_cam ()
{
echo -n "Terminar Grupo Socios Multi multics"
pkill -9 multics.x64
sleep 2
echo " : done"
}

# See how we were called.
case "$1" in
start)
echo "[SCRIPT] $1: $CAMNAME"
start_cam
;;
stop)
echo "[SCRIPT] $1: $CAMNAME"
stop_cam
;;
restart)
echo "Restaring $1: $CAMNAME"
stop_cam
start_cam
;;
*)
"$0" stop
exit 1
;;
esac
exit 0