0

I added an init file for starting an application on boot then

chmod a+x /etc/init.d/musicbot

and

update-rc.d musicbot defaults

The code I added in /etc/init.d is

#!/bin/bash
### BEGIN INIT INFO
# Provides:          musicbot
# Required-Start:    $remote_fs $syslog
# Required-Stop:     $remote_fs $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Start musicbot
### END INIT INFO

cd /root/MusicBot
./run.sh start

When I check the status it shows this:

Error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.