Fixing more the init script

This commit is contained in:
sergiotarxz 2021-11-14 00:42:05 +01:00
parent a0295ace2a
commit 413f2d8e5a

View File

@ -6,3 +6,11 @@ pidfile="/run/cualsea/cualsead.pid"
command="cualsead"
command_user="cualsea:cualsea"
command_background="true"
rundirectory="/run/cualsea"
start_pre() {
if [ ! -d $rundirectory ]; then
mkdir $rundirectory
chown cualsea:cualsea $rundirectory
fi
}