You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CubeSatSim/systemd
alanbjohnston 8a5d446e9d
Update README.md
7 years ago
..
README.md Update README.md 7 years ago
cubesatsim.service changed to make it run last in systemd 7 years ago
custom.target Create custom.target 7 years ago
new.service boot autorun working with sleep 7 years ago

README.md

To make the CubeSat Simulator transmit automatically on boot, follow these steps, which were derived from https://www.mauras.ch/systemd-run-it-last.html

On the Pi, if you are not already in this directory:

cd ~/CubeSatSim/systemd

sudo cp custom.target /etc/systemd/system/custom.target

sudo mkdir /etc/systemd/system/custom.target.wants

sudo cp cubesatsim.service /etc/systemd/system/custom.target.wants/cubesatsim.service

sudo systemctl isolate custom.target

sudo ln -sf /etc/systemd/system/custom.target /etc/systemd/system/default.target

Now after a reboot (sudo reboot now), the demo.sh script will run automatically, and the console will log to ~/CubeSatSim/log.txt To see it:

tail ~/CubeSatSim/log.txt

Powered by TurnKey Linux.