Skip to content

Commit

Permalink
Using new linetrace setup
Browse files Browse the repository at this point in the history
  • Loading branch information
mklomp committed Jul 4, 2023
1 parent dd24daf commit 526924d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions services/mirte-web-interface.service
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,13 @@ After=network-online.target

[Service]
User=mirte
ExecStart=/bin/bash -c "cd /usr/local/src/mirte/mirte-web-interface/ && source ./node_env/bin/activate && cd nodejs-backend && npm run backend"
# & cd /usr/local/src/mirte/mirte-web-interface/ && source ./node_env/bin/activate && wetty -p 3333"
# We need bash in bash since ROS noetic and NPM do not work nicely together
ExecStart=/bin/bash -c '/bin/bash -c "source /home/mirte/mirte_ws/devel/setup.bash && python3 -m mirte_robot.linetrace" & /bin/bash -c "cd /usr/local/src/mirte/mirte-web-interface/ && source ./node_env/bin/activate && cd nodejs-backend && npm run backend"'
# And we need a tty to strace it
StandardInput=tty-force
TTYVHangup=yes
TTYPath=/dev/tty20
TTYReset=yes

[Install]
WantedBy=multi-user.target

0 comments on commit 526924d

Please sign in to comment.