Can't start in in a cron job ?

On 9/25/2014 8:20 PM, [email protected] wrote:
> Hi,
>
>  I want to autostart the program on boot on BBB debian.
> My executable is located in /opt/bap and I can start it from terminal
> by ./bap
> Following the instruction from here
> http://stackoverflow.com/questions/11152657/angstrom-start-up-processes-beaglebone
>  
>
>
> the file bap.service in /lib/systemd/system/ has the content:
>
> [Unit]
>  Description=ball and plate
>  After=syslog.target network.target
>  [Service]
>  WorkingDirectory=/opt/bap
>  Type=simple
>  ExecStart=/opt/bap ./bap
>  [Install]
>  WantedBy=multi-user.target
>
> then I did:
> |systemctl enable bap.service
> ||systemctl start bap.service|
>
> All was good, but
> debian@beaglebone:/opt/bap$ sudo systemctl status bap.service
> bap.service - ball and plate
>         Loaded: loaded (/lib/systemd/system/bap.service; enabled)
>         Active: failed (Result: exit-code) since Fri, 26 Sep 2014 03:03:42 
> +0000; 4s ago
>        Process: 6515 ExecStart=/opt/bap ./bap (code=exited, status=203/EXEC)
>         CGroup: name=systemd:/system/bap.service
>
> Sep 26 03:03:42 beaglebone (bap)[6515]: Failed at step EXEC spawning 
> /opt/ba...d
> debian@beaglebone:/opt/bap$ 
>
> How to fix it?
>
> Jan
>
> -- 
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google
> Groups "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to [email protected]
> <mailto:[email protected]>.
> For more options, visit https://groups.google.com/d/optout.

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to