Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-07 Thread Mala Dies
Hello, I was unaware of not being able to produce GUI ideas w/ daemons. Now, I know! Thanks to you two people for trying things out and knowing stuff. Thank you. Seth On Friday, December 7, 2018 at 8:10:32 AM UTC-6, Harke Smits wrote: > > WOW! You made my day! This works! I am working

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-07 Thread Harke Smits
WOW! You made my day! This works! I am working about two weeks to get this going but I was completely at the wrong track! Thank you so much for your advice. IOU! Best regards, enjoy the weekend, Harke On Fri, 7 Dec 2018 at 14:04, Tarmo Kuuse wrote: > Hi Harke, > > >> No problem, I can do

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-07 Thread Tarmo Kuuse
Hi Harke, > No problem, I can do that, in fact I have done that many times with the >>> same results. I can enter: cd /home/debian/eme/ and then: python aceme.py >>> or I can enter: python /home/debian/eme/aceme.py. That works in both ways >>> exactly the same. When run under the bash it

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-06 Thread Harke Smits
I am really lost here. I have a working application on the BBB platform running Debian from a couple of years ago. It was not easy but I got it completely running, automatically. Now I am trying for two weeks to upgrade to Debian 9.5 and I find the i2c busses are interchanged and hard to use, the

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-06 Thread Jim F
I was actually thinking you should make sure you run the exact same python. So if your exec start line says /usr/bin/python2.7 aceme.py then you should run that. Then pay attention to the comments about the pythonpath in my previous email. But your other descriptions are not promising. I don't

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-06 Thread Harke Smits
Hi Jim, No problem, I can do that, in fact I have done that many times with the same results. I can enter: cd /home/debian/eme/ and then: python aceme.py or I can enter: python /home/debian/eme/aceme.py. That works in both ways exactly the same. When run under the bash it gives an error saying

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-05 Thread Jim F
Harke, You should try running your script from the cli using the exact same command you use for the exec start line in your service file. It should give you the same errors you are seeing. That would be good. If not, the problem is that your environment doesn't match. It will probably end up

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-05 Thread Harke Smits
login as: debian debian@Beaglebone's password: The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-05 Thread Harke Smits
Hello Jim and Seth, Thank you for your support. The service test scripts all run fine. My own scripts persist in the error given above. My own service loads but aborts at import serial, which, I guess, has not so much to do with serial, as with something else. I will try and upload the relevant

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-04 Thread Jim F
I actually think what you need to do is something along the following line. I don't think the shebang line makes a difference (rather, I know this) if you pass the python script directly to the python binary. ExecStart=/usr/bin/python2.7 /path/to/my_file.py You should post your errors if Seth's

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-04 Thread Mala Dies
Okay and Hello Once More, Seth here. I think (know) Jim F was on to something w/ your software and setting up .service files for running on boot. For example: Here is another test example to try out to learn more about .service files and starting files on boot on the BBB (or other related

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-04 Thread Mala Dies
Hello, If you are using an environment, env, to run your software on boot, I may be out of line. I do not use environments for my Linux Distros when running software on boot. Um, I think if you just type up your software w/ Python2 and add the top line #!/usr/bin/python to the software, you

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-04 Thread Harke Smits
Looks like we are close. But the error codes are persistent. I can not copy/paste but serial does not load. Whatever I place in the first line of the python file. I tried: #!/bin/env/python and other shebangs (I learn!) but the error remains exactly the same. Btw: I use python2.x Any clue what to

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-03 Thread Mala Dies
Harke, Did you, in the software example you created, add #!/usr/bin/python3 to the top of your program and then use this command: sudo chmod a+x YourFile.py? Now, you should be able to run your .service file like before from the example I had given. Seth On Monday, December 3, 2018 at

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-03 Thread Harke Smits
Hello jim, Many thanks for chiming in! I copied your example, only close, and then got an error that I need to provide the complete path for python as well. It never occured to me as I thought I can invoke Python just from about everywhere. No way. Now it loads the proper way. Unfortunately my

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-03 Thread Jim F
Hi Harke, I am hoping to build up some good will to get an answer to my question, so let me see if I can pitch in. Plus I wanted to get a systemd service working anyway, which I did successfully this morning. Here are the steps I took. 1) Create the application. I wrote a stupid python program:

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-03 Thread Harke Smits
Thank you for your support Seth! I do not think I am running anything special. Just one Python script, 400 lines of my code, many thousends in libs, I guess. From QTerminal command line it runs perfectly. From within a service not. Looking at your proposal: do you really intend to write:

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-02 Thread Mala Dies
Hello Harke, Seth here. Um, are you trying to run a specific piece of software only or are you trying to run multiple pieces of software? Seth P.S. I know you have to make a file accessible at /etc/systemd/system/ w/ the proper instructions in that .service file. Now, to make it run should be

Re: [beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-12-01 Thread Harke Smits
Hi Seth, In the meantime I think I tried just about any combination I can think of. Mostly I get the following error codes after demanding the status; Loaded Active: failed Process: 1002 ... code = exited, status=203/EXEC Main PID: 1002. In short; no luck so far I am doing

[beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-11-30 Thread Mala Dies
Hello, When you type under [Service], use only the PATH. Try that idea first. I may be able to help out a bit. Seth P.S. For instance, say I have a Python file in this dir: /home/debian/LoveBone/. I would simply put, under the [Service] tag, ExecStart=/home/debain/LoveBone/MultipleIdeas.py

[beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-11-30 Thread Harke Smits
Hello Seth, Thanks a lot for your reaction. I already digested these pages (as good as I could, I am an RF engineer, not a programmer). Unfortunately this does not help me much. The service file is at the correct location. I hope to get some clue where I am doing something wrong. Thanks again,

[beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-11-30 Thread Mala Dies
Hello Again Harke, Seth here. You need to put your .service files in /etc/systemd/system/. I am pretty sure. Seth On Monday, November 26, 2018 at 5:49:16 AM UTC-6, Harke Smits wrote: > > Hello learned group, > > I have a Python application that I'd like to see start up on boot. It uses >

[beagleboard] Re: Debian 9: autorun on boot with systemd does not work

2018-11-30 Thread Mala Dies
Hello, Look here: https://www.freedesktop.org/software/systemd/man/systemd.service.html#Examples. I think you may need to rummage around in that site to look up your particular need but I am sure you can find what you are looking to gain on that site. Seth P.S. If you are having