Skip to content

Commit a3c5a84

Browse files
committed
fix(start): lock file created before check
Even if check fails a lock file will be generated to allow monitor to run
1 parent 82e5da4 commit a3c5a84

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lgsm/modules/command_start.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,13 +181,13 @@ fn_start_tmux() {
181181
echo -en "\n"
182182
}
183183

184-
check.sh
185-
186184
# If user ran the start command monitor will become enabled.
187185
if [ "${firstcommandname}" == "START" ] || [ "${firstcommandname}" == "RESTART" ]; then
188186
date '+%s' > "${lockdir:?}/${selfname}-monitoring.lock"
189187
fi
190188

189+
check.sh
190+
191191
# If the server already started dont start again.
192192
if [ "${status}" != "0" ]; then
193193
fn_print_dots "${servername}"

0 commit comments

Comments
 (0)