Longmynd Auto-Start Program on Orange Pi Zero 2
Posted: Wed Jul 05, 2023 2:15 pm
Greetings.
Has anyone ran the Auto-Start program that Tom Van den Bon wrote about on his web site?
I have tried to run it, but I get an error:
Equal Sign (+) is missing.
I have looked through the code but I can't locate where it is talking about.
It references [12}, which I take to mean Line 12. But it looks correct.
Thanks.
This is my version:
#To setup longmynd on pi boot:
#Create service file
#sudo nano /etc/systemd/system/longmynd.service
#Enter this into the text file:
[Unit]
Description=Longmynd Client
After=multi-user.target
Requires=network.target
[Service]
Type=idle
User=pi
ExecStart=/root/longmynd/longmynd/longmynd -W 8080 -i 192.168.10.4 4003 -I 192.168.10.4 4002 2400000 1500
Restart=always
[Install]
WantedBy=multi-user.target
then do
sudo systemctl daemon-reload
sudo systemctl enable longmynd.service
#it should then start on reboot, you can also use these commands manually
#sudo systemctl stop longmynd.service
#sudo systemctl start longmynd.service
#sudo systemctl status longmynd.service
Has anyone ran the Auto-Start program that Tom Van den Bon wrote about on his web site?
I have tried to run it, but I get an error:
Equal Sign (+) is missing.
I have looked through the code but I can't locate where it is talking about.
It references [12}, which I take to mean Line 12. But it looks correct.
Thanks.
This is my version:
#To setup longmynd on pi boot:
#Create service file
#sudo nano /etc/systemd/system/longmynd.service
#Enter this into the text file:
[Unit]
Description=Longmynd Client
After=multi-user.target
Requires=network.target
[Service]
Type=idle
User=pi
ExecStart=/root/longmynd/longmynd/longmynd -W 8080 -i 192.168.10.4 4003 -I 192.168.10.4 4002 2400000 1500
Restart=always
[Install]
WantedBy=multi-user.target
then do
sudo systemctl daemon-reload
sudo systemctl enable longmynd.service
#it should then start on reboot, you can also use these commands manually
#sudo systemctl stop longmynd.service
#sudo systemctl start longmynd.service
#sudo systemctl status longmynd.service