I'm currently trying to reduce the time it takes to boot my beaglebone green and start a python script. My simple python script just turns on a relay on a cape.
I'm using the time it takes for the relay to turn as the time it takes to boot and do something useful.
Previously the relay would take 18 secs and I've gotten it down to 14 secs messing around with systemd.
I've created a simple unit file that will start my python program
[Unit] Description=Relaycheck run on startup DefaultDependencies=no After=systemd-system.slice [Service] WorkingDirectory=/home/ ExecStart=/home/relaycheck2.py StandardOutput=null [Install] Alias=relaycheck2.service
And here's a cropped picture of the current boot chart: Bootchart
To my understanding, my service is being run quite early and the time consuming services like networking, don't impact my relay service. Is this correct?
Is there anything else I can do reduce the time to boot using systemd?