I recently hired a VPS Server here to mess around with since I know little of this stuff. Now, I am trying to start a Dart script when the server boots, but it’s not working for some reason.
case “$1” in start) echo “Starting dartserver” dart /home/jash/development/dartServer/bin/dartserver.dart ;; stop) echo “Stopping dartserver” killall dart killall dartserver ;; *) echo “Usage: /etc/init.d/dartserver start|stop” exit 1 ;; esac
The service works: I can start it with “service dartserver start”
Then, when I run “update-rc.d -n dartserver defaults”, this is the output: http://18.104.22.168/consoleOutput.jpg
Can anyone see if I am doing something wrong? Thanks!!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Click below to sign up and get $200 of credit to try our products over 60 days!