Skip to content

Commit

Permalink
adds system monitor as systemd service (#1)
Browse files Browse the repository at this point in the history
* adds system monitor as systemd service

* add new groundstation
  • Loading branch information
Claudio-Chies authored Apr 9, 2024
1 parent d03dc8f commit d198919
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Tools/configure.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,14 @@ cp -vf $PACKAGE_PATH/systemd/adaptive-snowsampler.service /etc/systemd/system/
cp -vf $PACKAGE_PATH/systemd/mavlink-router.service /etc/systemd/system/
cp -vf $PACKAGE_PATH/systemd/rosbag-record.service /etc/systemd/system/
cp -vf $PACKAGE_PATH/systemd/ssp-bridge.service /etc/systemd/system/
cp -vf $PACKAGE_PATH/systemd/system-monitor.service /etc/systemd/system/

systemctl enable adaptive-snowsampler.service
systemctl enable mavlink-router.service
systemctl enable ssp-bridge.service
systemctl enable system-monitor.service

sudo systemctl start adaptive-snowsampler.service
sudo systemctl start mavlink-router.service
sudo systemctl start ssp-bridge.service
sudo systemctl start ssp-bridge.service
sudo systemctl start system-monitor.service
5 changes: 5 additions & 0 deletions systemd/mavlinkrouter.config
Original file line number Diff line number Diff line change
Expand Up @@ -139,3 +139,8 @@ Port = 14550
Mode = Normal
Address = 172.30.146.222
Port = 14550

[UdpEndpoint gcs3]
Mode = Normal
Address = 172.30.255.38
Port = 14550
6 changes: 6 additions & 0 deletions systemd/run_system_monitor.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/bin/bash

set -e

source $HOME/catkin_ws/devel/setup.bash
roslaunch system_monitor_ros system_monitor.launch
12 changes: 12 additions & 0 deletions systemd/system-monitor.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=Launch auterion system monitor node as a service
After=network.target systemd-udevd.service

[Service]
EnvironmentFile=/home/user/catkin_ws/src/adaptive-snowsampler/systemd/environment.conf
ExecStart=/bin/bash /home/user/catkin_ws/src/adaptive-snowsampler/systemd/run_system_monitor.sh
User=user
Group=user

[Install]
WantedBy=multi-user.target

0 comments on commit d198919

Please sign in to comment.