Skip to content

Commit f4cfc3a

Browse files
author
ggeop
committed
Fix mongodb service start
1 parent b7457e2 commit f4cfc3a

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

run_jarvis.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------
33
# Start MongoDB service
44
# --------------------------------
5-
sudo service mongod start
5+
sudo systemctl start mongodb
66

77
# --------------------------------
88
# Start Jarvis service with virtualenv
@@ -12,4 +12,4 @@ sudo service mongod start
1212
# --------------------------------
1313
# Stop MongoDB service
1414
# --------------------------------
15-
sudo service mongod stop
15+
sudo systemctl stop mongodb

run_tests.sh

+17-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
11
#!/usr/bin/env bash
2+
# --------------------------------
3+
# Activate Python virtual env
4+
# --------------------------------
25
export PYTHONPATH="${PYTHONPATH}:./src/jarvis"
36
source jarvis_virtualenv/bin/activate
4-
sudo service mongod start
7+
8+
# --------------------------------
9+
# Start MongoDB service
10+
# --------------------------------
11+
sudo systemctl start mongodb
12+
13+
# --------------------------------
14+
# Run unittests
15+
# --------------------------------
516
python -m unittest discover -s ./src -p "*tests.py"
6-
sudo service mongod stop
17+
18+
# --------------------------------
19+
# Stop MongoDB service
20+
# --------------------------------
21+
sudo systemctl stop mongodb

0 commit comments

Comments
 (0)