This commit is contained in:
rjawor 2015-12-14 15:43:33 +01:00
parent 7b38c59e92
commit 5fac533cf9
3 changed files with 13 additions and 0 deletions

2
.gitignore vendored
View File

@ -7,6 +7,8 @@ scripts/concordia-server.PID
scripts/start.sh scripts/start.sh
scripts/stop.sh scripts/stop.sh
scripts/restart.sh scripts/restart.sh
scripts/watchdog.sh
scripts/watchdog.log
db/pgbouncer.log db/pgbouncer.log
db/pgbouncer.pid db/pgbouncer.pid

View File

@ -39,6 +39,10 @@ configure_file (
"${concordia-server_SOURCE_DIR}/scripts/cmake_stubs/restart.sh.in" "${concordia-server_SOURCE_DIR}/scripts/cmake_stubs/restart.sh.in"
"${concordia-server_SOURCE_DIR}/scripts/restart.sh" "${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(CONFIG_FILE_PATH "${concordia-server_SOURCE_DIR}/concordia.cfg")
set(LOG_FILE_PATH "${concordia-server_SOURCE_DIR}/logs/concordia-server.log") set(LOG_FILE_PATH "${concordia-server_SOURCE_DIR}/logs/concordia-server.log")

View 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