Merge branch 'thor77/lutim-master't push origin master

This commit is contained in:
Luc Didry
2015-08-05 15:41:39 +02:00
2 changed files with 29 additions and 0 deletions
+6
View File
@@ -104,6 +104,12 @@ vim /etc/default/lutim
/etc/init.d/lutim start
```
### Starting Lutim with the Upstart script
* ``cp utilities/lutim_upstart.conf /etc/init/lutim.conf``
* ``cp utilities/lutim.default /etc/default/lutim``
* modify path to the Lutim-root in /etc/default/lutim
* ``start lutim``
## Update
```
git pull
+23
View File
@@ -0,0 +1,23 @@
# -*- upstart -*-
description "lutim"
author "Thor77 <thor77@thor77.org"
start on (networking)
stop on runlevel [!2345]
script
if [ -f "/etc/default/lutim" ]
then
. /etc/default/lutim
if [ -z $LDIR ]
then
echo "LDIR variable is empty, please fill it in /etc/default/lutim"
exit 0
fi
else
echo "Missing /etc/default/lutim file"
exit 0
fi
cd $LDIR
carton exec hypnotoad script/lutim -f
end script