Robot_Upstart Can not Start Service

asked 2021-05-03 04:05:40 -0500

bfdmetu gravatar image

updated 2021-05-03 04:43:14 -0500

Hi , i am trying to start my robot with robot_upstart. I tried different configuration but can not solved this problem.

sayici.service - "bringup sayici"
   Loaded: loaded (/lib/systemd/system/sayici.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2021-05-03 11:38:36 +03; 1s ago
  Process: 25650 ExecStart=/usr/sbin/sayici-start (code=exited, status=1/FAILURE)
 Main PID: 25650 (code=exited, status=1/FAILURE)

May 03 11:38:36 bfd-Lenovo-Legion root[25651]: sayici: Using workspace setup file source /home/bfd/catkin_opt/devel/setup.bash

May 03 11:38:36 bfd-Lenovo-Legion sayici-start[25650]: <14>May  3 11:38:36 root: sayici: Using workspace setup file source /home/bfd/catkin_opt/devel/setup.bash
May 03 11:38:36 bfd-Lenovo-Legion sayici-start[25650]: /usr/sbin/sayici-start: line 9: source: No such file or directory
May 03 11:38:36 bfd-Lenovo-Legion sayici-start[25650]: <14>May  3 11:38:36 root: sayici: Launching ROS_HOSTNAME=bfd-Lenovo-Legion, ROS_IP=, ROS_MASTER_URI=http://
May 03 11:38:36 bfd-Lenovo-Legion sayici-start[25650]: /usr/sbin/sayici-start: line 39: rosrun: command not found
May 03 11:38:36 bfd-Lenovo-Legion sayici-start[25650]: /usr/sbin/sayici-start: line 53: rosrun: command not found
May 03 11:38:36 bfd-Lenovo-Legion root[25660]: sayici: Unable to generate amalgamated launchfile.
May 03 11:38:36 bfd-Lenovo-Legion sayici-start[25650]: <11>May  3 11:38:36 root: sayici: Unable to generate amalgamated launchfile.
May 03 11:38:36 bfd-Lenovo-Legion systemd[1]: sayici.service: Main process exited, code=exited, status=1/FAILURE
May 03 11:38:36 bfd-Lenovo-Legion systemd[1]: sayici.service: Failed with result 'exit-code'.

THIS IS A GENERATED FILE, NOT RECOMMENDED TO EDIT.

service file

[Unit]       
Description="bringup sayici"
After=network.target

[Service]
Type=simple
ExecStart=/usr/sbin/sayici-start

[Install]
WantedBy=multi-user.target

robot_up start file

#
#!/usr/bin/env python

import robot_upstart
j = robot_upstart.Job(name="sayici",workspace_setup="source /home/bfd/catkin_opt/devel/setup.bash")
j.symlink = True
j.add(package="robot_upstart", filename="test/counter.launch" )
j.install()
edit retag flag offensive close merge delete

Comments

Write your service file here

parzival gravatar image parzival  ( 2021-05-03 04:22:55 -0500 )edit

I edit my question. Thank you

bfdmetu gravatar image bfdmetu  ( 2021-05-03 04:43:46 -0500 )edit