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.
