Skip to content

Instantly share code, notes, and snippets.

@ploxiln
Last active August 29, 2015 14:10
Show Gist options
  • Save ploxiln/e53eddb61c0db07b0022 to your computer and use it in GitHub Desktop.
Save ploxiln/e53eddb61c0db07b0022 to your computer and use it in GitHub Desktop.
simple way to daemonize a server process as a normal user
#!/bin/bash
rails s </dev/null >>rails.log 2>&1 &
disown $!
# to stop, use "pkill rails"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment