Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Commit

Permalink
Merge pull request #245 from jtwhit/services
Browse files Browse the repository at this point in the history
[ansible] Updated base station and onboard services.
  • Loading branch information
jtwhit authored May 29, 2019
2 parents f11e341 + 816d395 commit 82dc278
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=MRover Base Station Kineval Stencil

[Service]
User={{ user }}
EnvironmentFile=/etc/default/rover.env
ExecStart={{ workspace_dir }}/jarvis exec base_station_kineval_stencil

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions ansible/roles/base_station_services/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
- rover-base_station_gstreamer_2.service
- rover-lcm_bridge_server.service
- rover-base_station_microscope.service
- rover-base_station_kineval.service
- rover-base_station_gstreamer.timer
- rover-base_station_gstreamer_2.timer
- rover-base_station_microscope.timer
Expand All @@ -31,6 +32,7 @@
with_items:
- rover-base_station_gui.service
- rover-lcm_bridge_server.service
- rover-base_station_kineval.service
- rover-base_station_microscope.timer
- rover-base_station_gstreamer.timer
- rover-base_station_gstreamer_2.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=MRover Onboard Autonomy Light

[Service]
EnvironmentFile=/etc/default/rover.env
Environment=HOME={{ home_dir }}
ExecStart={{ workspace_dir }}/jarvis exec onboard_auton_light
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=MRover Onboard Kinematics

[Service]
EnvironmentFile=/etc/default/rover.env
User={{ running_user }}
ExecStart={{ workspace_dir }}/jarvis exec onboard_kinematics
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
4 changes: 4 additions & 0 deletions ansible/roles/onboard_services/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,12 @@
src: "files/{{ item }}.service"
dest: "/etc/systemd/system/{{ item }}.service"
with_items:
- rover-onboard-auton-light
- rover-onboard-cv
- rover-onboard-filter
- rover-onboard-gps
- rover-onboard-imu
- rover-onboard-kinematics
- rover-onboard-microscope
- rover-onboard-nav
- rover-onboard-raman
Expand All @@ -31,10 +33,12 @@
- name: Enable services
systemd: name={{item}} enabled=yes
with_items:
- rover-onboard-auton-light.service
- rover-onboard-cv.service
- rover-onboard-filter.service
- rover-onboard-gps.service
- rover-onboard-imu.service
- rover-onboard-kinematics.service
- rover-onboard-microscope.service
- rover-onboard-nav.service
- rover-onboard-raman.service
Expand Down

0 comments on commit 82dc278

Please sign in to comment.