I'm new to shell scripting, i want the command to be in running always.
My .sh file -
echo "Scrapyd is started now"
chmod +x etc/init.d/startscrapy.sh
crontab you can easily auto start any scripts in ubuntu.
Please do the following steps,
crontab -eso that you can edit the crontab.
@reboot sudo <script>in your case it should be
@reboot sudo scrapyd.
Hope it Helps.