Fixing more the init script
This commit is contained in:
parent
a0295ace2a
commit
413f2d8e5a
@ -6,3 +6,11 @@ pidfile="/run/cualsea/cualsead.pid"
|
|||||||
command="cualsead"
|
command="cualsead"
|
||||||
command_user="cualsea:cualsea"
|
command_user="cualsea:cualsea"
|
||||||
command_background="true"
|
command_background="true"
|
||||||
|
rundirectory="/run/cualsea"
|
||||||
|
|
||||||
|
start_pre() {
|
||||||
|
if [ ! -d $rundirectory ]; then
|
||||||
|
mkdir $rundirectory
|
||||||
|
chown cualsea:cualsea $rundirectory
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user