Skip to content

Commit 346a8c7

Browse files
authored
Fix/shm (#21)
Turn off clearing of SHM on log out (interfered with services)
1 parent 0f10776 commit 346a8c7

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

debian/install

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
scripts/* /usr/bin/
22
udev/*.rules /etc/udev/rules.d/
33
etc/* /etc/
4+
install_config/logind/70-clearpath-standard-logind.conf /usr/lib/systemd/logind.conf.d/
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Disable the clearing of SHM links when all user sessions are ended so that running
2+
# ROS 2 services are not impacted when SSH sessions are closed.
3+
[Login]
4+
RemoveIPC=no

turtlebot4_setup/ros_setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ def __init__(self, conf: Conf) -> None:
8787
function=self.set_fastrtps_default_profiles_file),
8888
MenuEntry('', None),
8989
MenuEntry(entry='Apply Defaults', function=self.apply_defaults),
90-
MenuEntry(entry='Save', function=self.save_settings),]
90+
MenuEntry(entry='Save', function=self.save_settings), ]
9191

9292
self.menu = Menu(self.title, self.entries)
9393

@@ -438,7 +438,7 @@ def generate_uninstall(self):
438438

439439
def fix_conf_username(self, discovery_conf_contents):
440440
"""
441-
Replace the `User=ubuntu` text in the configuration with the current username
441+
Replace the `User=ubuntu` text in the configuration with the current username.
442442
443443
@return The modified config file contents
444444
"""

0 commit comments

Comments
 (0)