Open tugbakara opened 10 months ago
sudo systemctl --all | grep mon_deneme
● mon_deneme.service loaded failed failed Robot Bringup Launch Service
Here's a typical systemd unit file we have been using:
[Unit]
Description=My ROS service
After=network-online.target
Wants=network-online.target
Requires=roscore.service
AssertPathExists=/opt/ros
[Service]
Type=simple
User=my_username
TasksMax=infinity
KillSignal=SIGINT
ExecStart=/bin/bash -c ' \
source /home/my_workspace/install/setup.bash && \
rosrun rosmon_core rosmon --name rosmon_context --disable-ui --flush-stdout --log /tmp/context.log PKG launchfile.launch \
'
[Install]
WantedBy=default.target
and we start the roscore using another unit file (roscore.service):
[Unit]
Description=ROS Master
After=network-online.target
After=smbd.target
Wants=network-online.target
Wants=smbd.target
AssertPathExists=/opt/ros
[Service]
Type=simple
User=my_username
SyslogIdentifier=roscore
TasksMax=infinity
KillSignal=SIGINT
ExecStart=/bin/bash -c ' \
source $${ROS_SETUP:=/opt/ros/noetic/setup.bash} && \
exec /opt/ros/noetic/bin/roscore -w 20 -t 8 \
'
[Install]
WantedBy=default.target
(the smbd.target is probably not required in your case)
Hi, I want to use mon with system servise as:
but I couldn't run this, and there is not any error, how can I make it run, or does mon support service?