From 2859f223b6ad0c14600f8c985054a82a7b86ffe6 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Thu, 23 Jan 2020 17:59:33 -0500 Subject: [PATCH] Update README.md --- systemd/README.md | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/systemd/README.md b/systemd/README.md index 3b324b68..1bce6657 100644 --- a/systemd/README.md +++ b/systemd/README.md @@ -1,18 +1,13 @@ -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 +To make the CubeSat Simulator transmit automatically on boot, follow these steps, which were derived from https://www.raspberrypi.org/documentation/linux/usage/systemd.md -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 +On the Pi, if you are not already in this directory: -sudo cp cubesatsim.service /etc/systemd/system/custom.target.wants/cubesatsim.service +cd systemd -sudo systemctl isolate custom.target +sudo cp ~/CubeSatSim/cubesatsim.service /etc/systemd/system/cubesatsim.service -sudo ln -sf /etc/systemd/system/custom.target /etc/systemd/system/default.target +sudo systemctl service enable cubesatsim 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: