Added init.d script.
This commit is contained in:
39
Configs/humidityserver
Executable file
39
Configs/humidityserver
Executable 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
15
Configs/laravel.conf
Normal 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>
|
Reference in New Issue
Block a user