OpenSuse Tumbleweed: How to run a bash script on startup?
0
votes
2
answers
10274
views
I'm trying to a run a .sh file on startup of a rPi3B+ running openSuse Tumbleweed JeOS. The script is really simple and looks like this:
node /home/user_name/path/to/the/file.js
here are two links I tried to follow:
https://forums.opensuse.org/showthread.php/428743-How-to-run-script-at-startup
https://www.suse.com/c/easy-running-scripts-boot-and-shutdown/
https://doc.opensuse.org/documentation/leap/startup/html/book.opensuse.startup/cha.adm.shell.html
How how to go about this?
Edit: I also just tried following along to this one without any luck either: https://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup#12973826
My startServer
script in /etc/init.d
looks like this:
#!/bin/sh
# ScriptName=startServer
node /home/user-name/server.js &
Asked by AustinFoss
(131 rep)
Feb 13, 2019, 10:32 PM
Last activity: Jun 4, 2025, 02:03 AM
Last activity: Jun 4, 2025, 02:03 AM