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 complications still, please reply. I will look up 
some items on your reply transmission. Okay! I hope to hear from you soon. 

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 
> Tkinter, so it needs the graphical environment. 
> Running: python /home/debian/eme/myprog.py from the QTerminal command line 
> works as expected. Not outside the LXQT environment, which is normal I 
> think. 
> I made a service file: myprog.service like this:
> [Unit]
> Description=to invoke myprog automatically on boot
> Requires=graphical.target
> [Service]
> Type=simple
> WorkingDirectory=/home/debian/eme/
> ExecStart=python /home/debian/eme/myprog.py
> [Install]
> WantedBy=multi-user.target
>
> Service file is located at both: /etc/systemd/system/ and 
> /lib/systemd/system/ as I am unsure where it actually belongs. Of course I 
> already spend a lot of time at internet to find a solution. Only succes 
> stories here....
> I entered the following;
> sudo systemctl enable myprog.service: nothing special
> sudo systemctl start myprog.service: service is not loaded properly.....
> sudo systemctl status myprog.service: error (invalid argument), inactive 
> (dead).
>  
> Both from bash or within QTerminal: behaviour is the same.
>
> Please help me out what to do.
> Kind regards,
> Harke
>
>

-- 
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 beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/4ca5d799-3368-4782-bbd7-9ee40403cf33%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to