minor bug fixes and systemd service tweaks.

This commit is contained in:
Joshua Ashton
2025-03-14 12:10:39 -06:00
parent 7db3961a79
commit 5baaa9e456
4 changed files with 19 additions and 25 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
#!/bin/bash
$MANUAL_PORT=5090;
MANUAL_PORT=5090;
echo "Creating a SystemD service file. These are commands (applications) that you can set to start as soon as you turn on the Pi.";
echo "This file is located at `/etc/systemd/system/manual.service`.";
@@ -23,7 +23,7 @@ ExecStart=/usr/bin/python3 -m http.server $MANUAL_PORT
[Install]
WantedBy=multi-user.target" | sudo tee /etc/systemd/system/manual.service;
sudo systemctl daemon-reload && sudo systemctl enable manual.service;
sudo systemctl daemon-reload && sudo systemctl enable manual.service && sudo systemctl start manual.service;
echo "For now, this uses the command `python -m http.server 5090` to serve the man/pages on port 5090.";
echo "For more information, see raspi.vintagecoding.net#web-servers";