Skip to content

Instantly share code, notes, and snippets.

@TehShrike
Created July 11, 2015 20:46
Show Gist options
  • Select an option

  • Save TehShrike/2b772081dbf2f93352cc to your computer and use it in GitHub Desktop.

Select an option

Save TehShrike/2b772081dbf2f93352cc to your computer and use it in GitHub Desktop.
Getting things to run on startup on linux with init.d
#!/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
update-rc.d autoexec defaults 99
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment