Skip to content

Commit ae54203

Browse files
committed
make services dependant on mongoDB (will start them)
1 parent 38879ee commit ae54203

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

shepherd_server/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,16 @@ To test for success a simple cmd is enough:
167167
sudo systemctl status mongod
168168
```
169169

170+
Service is installed in `/lib/systemd/system/mongod.service`
171+
170172
### Install Services
171173

172174
Services are currently hard-linked to the above tooling in the account `service`.
173175

174176
```Shell
175177
sudo cp /opt/shepherd_webservice/shepherd_server/shepherd-api.service /etc/systemd/system/
178+
sudo systemctl daemon-reload
179+
176180
sudo systemctl start shepherd-api
177181
sudo systemctl enable shepherd-api
178182

shepherd_server/shepherd-api.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[Unit]
22
Description=API for controlling the Testbed
3+
After=mongod.service
4+
Wants=mongod.service
35

46
[Service]
57
Type=simple

shepherd_server/shepherd-scheduler.service

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
[Unit]
22
Description=Scheduler for the testbed
3+
After=mongod.service
4+
Wants=mongod.service
35

46
[Service]
57
Type=simple

0 commit comments

Comments
 (0)