File tree 2 files changed +19
-4
lines changed
2 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 2
2
# --------------------------------
3
3
# Start MongoDB service
4
4
# --------------------------------
5
- sudo service mongod start
5
+ sudo systemctl start mongodb
6
6
7
7
# --------------------------------
8
8
# Start Jarvis service with virtualenv
@@ -12,4 +12,4 @@ sudo service mongod start
12
12
# --------------------------------
13
13
# Stop MongoDB service
14
14
# --------------------------------
15
- sudo service mongod stop
15
+ sudo systemctl stop mongodb
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
+ # --------------------------------
3
+ # Activate Python virtual env
4
+ # --------------------------------
2
5
export PYTHONPATH=" ${PYTHONPATH} :./src/jarvis"
3
6
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
+ # --------------------------------
5
16
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
You can’t perform that action at this time.
0 commit comments