Added init.d script.

This commit is contained in:
2017-09-17 20:04:07 +02:00
parent 4f824ba29a
commit d7b611541f
3 changed files with 45 additions and 4 deletions

39
Configs/humidityserver Executable file
View File

@@ -0,0 +1,39 @@
#!/bin/sh
### BEGIN INIT INFO
# Provides: humidityserver
# Required-Start: $local_fs
# Required-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# X-Interactive: false
# Short-Description: Humidity Rest Server
# Description: Start/stop humidity rest server
### END INIT INFO
DESC="HimidityPi rest server"
NAME=humidityserver
#DAEMON=
do_start()
{
echo "starting!";
/usr/bin/humidityserver &
}
do_stop()
{
echo "stopping!"
killall humidityserver
}
case "$1" in
start)
do_start
;;
stop)
do_stop
;;
esac
exit 0

15
Configs/laravel.conf Normal file
View File

@@ -0,0 +1,15 @@
<VirtualHost *:80>
ServerName localhost
ServerAdmin lala@lala.de
DocumentRoot /var/www/html/public
<Directory /var/www/html>
AllowOverride All
</Directory>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>