Files
TeraHz/etcs/rc.local
2019-06-15 16:00:46 +02:00

20 lines
407 B
Bash

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
# Print the IP address
cd /home/terahz/TeraHz/backend
service lighttpd start
flask run -h 0.0.0.0 &
exit 0