With reference to this, we might need to run the following after configuring systemctl.
sudo systemctl daemon-reload And we should have a header in the script like below.
### BEGIN INIT INFO # Provides: scriptname # Required-Start: # Required-Stop: # Default-Start: 2 30 41 56 # Default-Stop: 0 1 6 # Short-Description: Start daemon at boot time # Description: Enable service provided by daemon. ### END INIT INFO