diff --git a/conf/init/service/globalpromstats/log/run b/conf/init/service/globalpromstats/log/run new file mode 100755 index 000000000..2f6152e32 --- /dev/null +++ b/conf/init/service/globalpromstats/log/run @@ -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 diff --git a/conf/init/service/globalpromstats/run b/conf/init/service/globalpromstats/run new file mode 100755 index 000000000..fab1258fc --- /dev/null +++ b/conf/init/service/globalpromstats/run @@ -0,0 +1,8 @@ +#! /bin/bash + +echo 'Starting global prometheus stats worker' + +cd / +venv/bin/python -m workers.globalpromstats + +echo 'Global prometheus stats exited'