Add missing service def for globalpromstats worker
This commit is contained in:
parent
1571b2867a
commit
7506471a82
2 changed files with 15 additions and 0 deletions
7
conf/init/service/globalpromstats/log/run
Executable file
7
conf/init/service/globalpromstats/log/run
Executable file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Ensure dependencies start before the logger
|
||||
sv check syslog-ng > /dev/null || exit 1
|
||||
|
||||
# Start the logger
|
||||
exec logger -i -t globalpromstats
|
8
conf/init/service/globalpromstats/run
Executable file
8
conf/init/service/globalpromstats/run
Executable file
|
@ -0,0 +1,8 @@
|
|||
#! /bin/bash
|
||||
|
||||
echo 'Starting global prometheus stats worker'
|
||||
|
||||
cd /
|
||||
venv/bin/python -m workers.globalpromstats
|
||||
|
||||
echo 'Global prometheus stats exited'
|
Reference in a new issue