Skip to content

Instantly share code, notes, and snippets.

@xiaoysh8
Created April 18, 2019 01:29
Show Gist options
  • Save xiaoysh8/66e64ecbd2c1573d8e9df32d89c49dc2 to your computer and use it in GitHub Desktop.
Save xiaoysh8/66e64ecbd2c1573d8e9df32d89c49dc2 to your computer and use it in GitHub Desktop.
linux autorun script
1)
sudo nano /etc/init.d/local.autostart
2)
add in file:
#!/bin/sh
supervisord -c /etc/supervisor/supervisord.conf
sudo chmod +x /etc/init.d/local.autostart
4)
cd /etc/init.d/
5)
sudo update-rc.d local.autostart defaults 80
6)
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment