Skip to content

Instantly share code, notes, and snippets.

@ishrakr
Created February 21, 2018 18:48
Show Gist options
  • Save ishrakr/031641f389d003e1e83f2396543876ba to your computer and use it in GitHub Desktop.
Save ishrakr/031641f389d003e1e83f2396543876ba to your computer and use it in GitHub Desktop.
exec 2> /tmp/rc.local.log
exec 1>&2
set -x
su - user -c '/path/to/script.sh' &
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment