node-red (alpine): remove unneeded service file

This commit is contained in:
CanbiZ 2025-05-28 10:46:47 +02:00
parent 7079f428ca
commit 9e2d66266a
2 changed files with 0 additions and 27 deletions

View File

@ -32,10 +32,6 @@ function update_script() {
$STD npm install -g --unsafe-perm node-red $STD npm install -g --unsafe-perm node-red
msg_ok "Updated Node-RED" msg_ok "Updated Node-RED"
msg_info "Restarting Node-RED"
$STD rc-service nodered restart
msg_ok "Restarted Node-RED"
exit 0 exit 0
} }

View File

@ -35,28 +35,5 @@ chown -R nodered:users /home/nodered
chmod 750 /home/nodered chmod 750 /home/nodered
msg_ok "Created /home/nodered" msg_ok "Created /home/nodered"
msg_info "Creating Node-RED Service"
service_path="/etc/init.d/nodered"
echo '#!/sbin/openrc-run
description="Node-RED Service"
command="/usr/local/bin/node-red"
command_args="--max-old-space-size=128 -v"
command_user="nodered"
pidfile="/var/run/nodered.pid"
depend() {
use net
}' >$service_path
chmod +x $service_path
$STD rc-update add nodered default
msg_ok "Created Node-RED Service"
msg_info "Starting Node-RED"
$STD rc-service nodered start
msg_ok "Started Node-RED"
motd_ssh motd_ssh
customize customize