watchdog
This commit is contained in:
parent
7b38c59e92
commit
5fac533cf9
2
.gitignore
vendored
2
.gitignore
vendored
@ -7,6 +7,8 @@ scripts/concordia-server.PID
|
||||
scripts/start.sh
|
||||
scripts/stop.sh
|
||||
scripts/restart.sh
|
||||
scripts/watchdog.sh
|
||||
scripts/watchdog.log
|
||||
db/pgbouncer.log
|
||||
db/pgbouncer.pid
|
||||
|
||||
|
@ -39,6 +39,10 @@ configure_file (
|
||||
"${concordia-server_SOURCE_DIR}/scripts/cmake_stubs/restart.sh.in"
|
||||
"${concordia-server_SOURCE_DIR}/scripts/restart.sh"
|
||||
)
|
||||
configure_file (
|
||||
"${concordia-server_SOURCE_DIR}/scripts/cmake_stubs/watchdog.sh.in"
|
||||
"${concordia-server_SOURCE_DIR}/scripts/watchdog.sh"
|
||||
)
|
||||
|
||||
set(CONFIG_FILE_PATH "${concordia-server_SOURCE_DIR}/concordia.cfg")
|
||||
set(LOG_FILE_PATH "${concordia-server_SOURCE_DIR}/logs/concordia-server.log")
|
||||
|
7
scripts/cmake_stubs/watchdog.sh.in
Executable file
7
scripts/cmake_stubs/watchdog.sh.in
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ ! "$(pidof concordia_server_process)" ]
|
||||
then
|
||||
@SCRIPTS_PATH@/restart.sh
|
||||
echo `date` "restarted" >> @SCRIPTS_PATH@/watchdog.log
|
||||
fi
|
Loading…
Reference in New Issue
Block a user