#! /bin/sh
### BEGIN INIT INFO
# Provides:       m3
# Required-Start:    $local_fs $remote_fs $network $syslog $named
# Required-Stop:     $local_fs $remote_fs $network $syslog $named
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: starts m3
# Description:       starts m3 using start-stop-daemon
# Copiar en /etc/init.d/
# update-rc.d -f m3_init defaults
# update-rc.d -f m3_init enable 2 3 4 5

### END INIT INFO

# Some things that run always

# Carry out specific functions when asked to by the system
case "$1" in
  start)
    echo "m3 iniciado..."
	python3 /home/geoint/m3_webInterface/manage.py runserver 192.168.0.112:8001
    ;;
  stop)
    echo "Deteniendo m3..."
    #
    ;;
  *)
    echo "Usage: /etc/init.d/m3_init {start|stop}"
    exit 1
    ;;
esac

exit 0

