11 lines
326 B
Bash
Executable File
11 lines
326 B
Bash
Executable File
#!/bin/bash
|
|
sudo rm /etc/systemd/system/node-red@.service
|
|
sudo rm /etc/systemd/system/node-red.service
|
|
sudo ln -s /opt/node-red-run/node-red.service /etc/systemd/system/
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable node-red
|
|
sudo systemctl restart node-red
|
|
sleep 5
|
|
sudo journalctl --unit=node-red -n 50 --no-pager
|
|
exit 1
|