mirror of
https://framagit.org/fiat-tux/hat-softwares/lutim.git
synced 2026-03-28 17:42:54 +01:00
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
29 lines
582 B
Plaintext
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
|