Files
lutim/utilities/lutim_upstart.conf
Luc Didry bb9fae43e2 Improve init files
Hypnotoad does not use "user" and "group" settings anymore. So I
removed the setting in the configuration template and changed some
things in the init files accordingly.

+ some fixes for annoying behavior in initV and systemd files
2015-09-09 23:07:13 +02:00

29 lines
582 B
Plaintext

# -*- 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
if [ -z $USER ]
then
echo "USER 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
su $USER -c "carton exec hypnotoad -f script/lutim"
end script