cualsea/cualsead.init

17 lines
333 B
Plaintext
Raw Normal View History

#!/sbin/openrc-run
description="Cualsead service monitor";
pidfile="/run/cualsea/cualsead.pid"
command="cualsead"
command_user="cualsea:cualsea"
command_background="true"
2021-11-14 00:42:05 +01:00
rundirectory="/run/cualsea"
start_pre() {
if [ ! -d $rundirectory ]; then
mkdir $rundirectory
chown cualsea:cualsea $rundirectory
fi
}