From c22dc5ebae9a5f137f2b38da19d0ba94fbc000db Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Mon, 10 Apr 2017 20:11:57 -0400 Subject: [PATCH] Add missing team sync worker service --- conf/init/service/teamsyncworker/log/run | 7 +++++++ conf/init/service/teamsyncworker/run | 8 ++++++++ 2 files changed, 15 insertions(+) create mode 100755 conf/init/service/teamsyncworker/log/run create mode 100755 conf/init/service/teamsyncworker/run diff --git a/conf/init/service/teamsyncworker/log/run b/conf/init/service/teamsyncworker/log/run new file mode 100755 index 000000000..c0a47f6b1 --- /dev/null +++ b/conf/init/service/teamsyncworker/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 storagereplication diff --git a/conf/init/service/teamsyncworker/run b/conf/init/service/teamsyncworker/run new file mode 100755 index 000000000..9f68ae897 --- /dev/null +++ b/conf/init/service/teamsyncworker/run @@ -0,0 +1,8 @@ +#! /bin/bash + +echo 'Starting team synchronization worker' + +cd / +venv/bin/python -m workers.teamsyncworker 2>&1 + +echo 'Team synchronization worker exited' \ No newline at end of file