Created
July 11, 2015 20:46
-
-
Save TehShrike/2b772081dbf2f93352cc to your computer and use it in GitHub Desktop.
Getting things to run on startup on linux with init.d
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
| #!/bin/sh | |
| ### BEGIN INIT INFO | |
| # Provides: autoexec | |
| # Required-Start: $remote_fs $syslog networking procps | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: Autoexec Starting | |
| # Description: Enable autoexec | |
| ### END INIT INFO | |
| /opt/autoexec/autoexec.sh > /opt/autoexec/autoexec.log |
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
| update-rc.d autoexec defaults 99 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment