Skip to content
Permalink
Browse files

Update python virtualenv path for service files

  • Loading branch information...
pwnbus committed Apr 20, 2018
1 parent 6f2a0aa commit 0b09d006f9460eae0e2c58d88107ad541809fef8
@@ -9,7 +9,7 @@ ExecStartPre=-/usr/bin/mkdir -p /var/run/mozdef-alerts
ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdef-alerts
User=mozdef
Group=mozdef
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/alerts; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini alert_plugins.ini'
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/alerts; source /opt/mozdef/envs/python/bin/activate; uwsgi --ini alert_plugins.ini'
Restart=always
KillSignal=SIGQUIT
Type=notify
@@ -10,7 +10,7 @@ ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdef-alerts
PIDFile=/var/run/mozdef-alerts/supervisord.pid
User=mozdef
Group=mozdef
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/alerts; source /opt/mozdef/envs/mozdef/bin/activate; /opt/mozdef/envs/mozdef/bin/supervisord -c /opt/mozdef/envs/mozdef/alerts/supervisord_alerts.ini'
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/alerts; source /opt/mozdef/envs/python/bin/activate; /opt/mozdef/envs/python/bin/supervisord -c /opt/mozdef/envs/mozdef/alerts/supervisord_alerts.ini'
Restart=always
KillSignal=SIGQUIT
Type=forking
@@ -9,7 +9,7 @@ ExecStartPre=-/usr/bin/mkdir -p /var/run/mozdefbot
ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdefbot/
User=mozdef
Group=mozdef
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/bot; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini mozdefbot.ini'
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/bot; source /opt/mozdef/envs/python/bin/activate; uwsgi --ini mozdefbot.ini'
Restart=always
KillSignal=SIGQUIT
Type=notify
@@ -9,7 +9,7 @@ ExecStartPre=-/usr/bin/mkdir -p /var/run/mozdef-loginput
ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdef-loginput/
User=mozdef
Group=mozdef
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/loginput; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini loginput.ini'
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/loginput; source /opt/mozdef/envs/python/bin/activate; uwsgi --ini loginput.ini'
Restart=always
KillSignal=SIGQUIT
Type=notify
@@ -9,7 +9,7 @@ ExecStartPre=-/usr/bin/mkdir -p /var/run/mozdef-loginput
ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdef-loginput/
User=mozdef
Group=mozdef
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/loginput; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini loginput.ini'
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/loginput; source /opt/mozdef/envs/python/bin/activate; uwsgi --ini loginput.ini'
Restart=always
KillSignal=SIGQUIT
Type=notify
@@ -9,7 +9,7 @@ ExecStartPre=-/usr/bin/mkdir -p /var/run/mozdef_mq_worker_pids
ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdef_mq_worker_pids
User=mozdef
Group=mozdef
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/mq; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini eventtask.ini'
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/mq; source /opt/mozdef/envs/python/bin/activate; uwsgi --ini eventtask.ini'
Restart=always
KillSignal=SIGQUIT
Type=notify
@@ -9,7 +9,7 @@ ExecStartPre=-/usr/bin/mkdir -p /var/run/mozdef-rest
ExecStartPre=/usr/bin/chown -R mozdef:mozdef /var/run/mozdef-rest/
User=mozdef
Group=mozdef
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/rest; source /opt/mozdef/envs/mozdef/bin/activate; uwsgi --ini restapi.ini'
ExecStart=/bin/bash -c 'cd /opt/mozdef/envs/mozdef/rest; source /opt/mozdef/envs/python/bin/activate; uwsgi --ini restapi.ini'
Restart=always
KillSignal=SIGQUIT
Type=notify

0 comments on commit 0b09d00

Please sign in to comment.
You can’t perform that action at this time.