Skip to content

Instantly share code, notes, and snippets.

@intuxicated
Created July 6, 2016 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save intuxicated/d0f178aeea24deca1fd7520c73dfc70f to your computer and use it in GitHub Desktop.
Save intuxicated/d0f178aeea24deca1fd7520c73dfc70f to your computer and use it in GitHub Desktop.
run it services
#!/bin/sh
# Use the exec command to start the app you want to run in this container.
# Don't let the app daemonize itself.
# `/sbin/setuser memcache` runs the given command as the user `memcache`.
# If you omit that part, the command will be run as root.
# Read more here: https://github.com/phusion/baseimage-docker#adding-additional-daemons
exec /sbin/setuser postgres /usr/lib/postgresql/9.5/bin/postgres -D /usr/local/pgsql/data
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment