Go2Py/deploy/services/go2py-bridge.service

13 lines
497 B
SYSTEMD
Raw Normal View History

2024-05-05 02:03:03 +08:00
[Unit]
Description=ROS2 device driver container
Requires=multi-user.target
After=multi-user.target
[Service]
Restart=always
ExecStartPre=/usr/bin/docker rm -f go2py_bridge || true
ExecStart=/bin/bash -c '/usr/bin/docker run --rm --name go2py_bridge --privileged --network host -v /home/unitree/locomotion:/home/locomotion -v /dev/*:/dev/* -v /etc/localtime:/etc/localtime:ro --runtime nvidia go2py_bridge:latest'
ExecStop=/usr/bin/docker stop -t 2 go2py_bridge
[Install]
WantedBy=default.target