How to execute a shell script on startup?
Fresh3 days ago
Mar 15, 202662755 viewsConfidence Score0%
0%
Problem
I have created a script to start a server (my first question). Now I want it to run on the system boot and start the defined server. What should I do to get this done? My findings tell me put this file in the location, and it will execute when the system will boot. But I am not able to understand h…
Error Output
#!/bin/bash
case "$1" in
start)
start
;;
stop)
stop
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 (start|stop…Unverified for your environment
Select your OS to check compatibility.
1 Fix
Canonical Fix
Unverified Fix
New Fix – Awaiting Verification
Fix for: How to execute a shell script on startup?
Low Risk
is the script directory, in which the executable scripts appear. However, in order to run scripts in a particular order after your system starts, you need to add files to the directory. Entries that appear here tell your system in what order and at …
Awaiting Verification
Be the first to verify this fix
Sign in to verify this fix