Skip to content
This repository was archived by the owner on Dec 17, 2021. It is now read-only.

Commit 44b6b4c

Browse files
authored
Feature/poller integration tests (#19)
* feat: if condition for poller mode * feat: if condition for poller mode
1 parent e59fff7 commit 44b6b4c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

entrypoint.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,15 @@ trap 'kill ${!}; quit_handler' SIGQUIT
3838

3939

4040

41-
echo starting sc4-snmp-poller
42-
sc4snmp-poller $@ &
41+
if [ "$POLLER_EXECUTION_MODE" = "scheduler" ]
42+
then
43+
echo starting sc4-snmp-scheduler
44+
sc4snmp-poller $@ &
45+
else
46+
echo starting sc4-snmp-worker
47+
celery -A splunk_connect_for_snmp_poller.manager.celery_client worker -l INFO -n worker1
48+
fi
49+
4350
pid="$!"
4451
sleep 2
4552
if ! ps -p $pid > /dev/null

0 commit comments

Comments
 (0)