Created
April 18, 2019 01:29
-
-
Save xiaoysh8/66e64ecbd2c1573d8e9df32d89c49dc2 to your computer and use it in GitHub Desktop.
linux autorun script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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