File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed
src/modules/openmower/filesystem/root Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ # openmower-debug.service
2+ # autogenerated by Podman 3.0.1
3+
4+ [Unit]
5+ Description =Podman container - openmower.service
6+ Documentation =man:podman-generate-systemd(1)
7+ Wants =network.target
8+ After =network-online.target NetworkManager.service
9+ Conflicts =openmower.service
10+ StartLimitInterval =120
11+ StartLimitBurst =10
12+
13+ [Service]
14+ Environment =PODMAN_SYSTEMD_UNIT =%n
15+ EnvironmentFile =/boot/openmower/openmower_version.txt
16+ Type =forking
17+ Restart =on-failure
18+ RestartSec =10s
19+ TimeoutStartSec =1h
20+ TimeoutStopSec =120s
21+
22+ ExecStartPre =/bin/rm -f %t/container-openmower-debug.pid %t/container-openmower-debug.ctr-id
23+
24+ ExecStart =/usr/bin/podman run --conmon-pidfile %t/container-openmower-debug.pid --cidfile %t/container-openmower-debug.ctr-id --cgroups =no-conmon \
25+ --replace --detach --tty --privileged \
26+ --name openmower-debug \
27+ --network =host \
28+ --volume /dev:/dev \
29+ --volume /boot/openmower/mower_config.txt:/config/mower_config.sh \
30+ --volume /root/ros_home:/root \
31+ --label io.containers.autoupdate =image \
32+ ghcr.io/clemenselflein/open_mower_ros:releases-${OM_VERSION}
33+
34+ #ExecStartPost=/usr/bin/podman image prune --force --filter image=open_mower_ros
35+
36+ ExecStop =/usr/bin/podman stop --ignore --cidfile %t/container-openmower-debug.ctr-id -t 10
37+
38+ ExecStopPost =/usr/bin/podman rm --ignore --force --cidfile %t/container-openmower-debug.ctr-id
39+
40+ PIDFile =%t/container-openmower-debug.pid
41+
42+ [Install]
43+ WantedBy =multi-user.target default.target
Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ Description=Podman container - openmower.service
66Documentation =man:podman-generate-systemd(1)
77Wants =network.target
88After =network-online.target NetworkManager.service
9+ Conflicts =openmower-debug.service
910StartLimitInterval =120
1011StartLimitBurst =10
1112
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Starts a bash in the docker container.
3+ # Use this for ROS specific commands (e.g. rostopic echo)
4+
5+ sudo podman exec -it openmower-debug /openmower_entrypoint.sh /bin/bash
You can’t perform that action at this time.
0 commit comments