Sorry but I'm doing something wrong. Not that familiar with Linux This code works in *Angstrom* showing test on a small screen ********** [Unit] Description=Start Python Oled
[Service] WorkingDirectory=/home/root/py-gaugette/samples/ ExecStart=/home/root/py-gaugette/samples/python ssd1306_test.py KillMode=process [Install] WantedBy=multi-user.target ************ I modified your example to get it working in* Debian* but the screen is still blank created a file in /etc/systemd/system/ named example.service ********** [Unit] Description=Example of a service [Service] Type=oneshot ExecStart=/bin/bash -c 'cd /home/root/py-gaugette/samples/ ; python ssd1306_test.py 2> example.err > example.out' *Then I tried* ExecStart=/bin/bash -c 'cd /home/root/py-gaugette/samples/ ; /usr/bin/python new_test.py 2> example.err > example.out' TimeoutSec=0 RemainAfterExit=yes [Install] WantedBy=multi-user.target Then gave the command systemctl enable example.service ********** On Thursday, June 12, 2014 11:08:32 PM UTC-3, [email protected] wrote: > > On Wednesday, June 11, 2014 5:51:28 AM UTC-7, mike rankin wrote: >> >> Creating a service on Angstrom to run a python script on power up works >> great. I tried to do the same with Debian but had no luck. Is this possible? >> > > If you're using a systemd-based Debian (like the current shipping version > of BBB), create a file in /etc/systemd/system/ named example.service (for > example) > > It should contain the following > > [Unit] > Description=Example of a service > > [Service] > Type=oneshot > ExecStart=/bin/bash -c 'cd /home/example ; python example.py 2> > example.err > example.out' > TimeoutSec=0 > RemainAfterExit=yes > > [Install] > WantedBy=multi-user.target > > > then give the command > > systemctl enable example.service > > > When you reboot, your script will execute. > > > -- 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.
