server running in background
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Sleep for a few seconds (if needed)
|
||||
# sleep 5
|
||||
|
||||
# Start Couchbase Server
|
||||
if [ "$(whoami)" = "couchbase" ]; then
|
||||
exec /opt/couchbase/bin/couchbase-server -- -kernel global_enable_tracing false -noinput
|
||||
else
|
||||
exec chpst -ucouchbase /opt/couchbase/bin/couchbase-server -- -kernel global_enable_tracing false -noinput
|
||||
fi
|
||||
|
||||
# Keep the script running to prevent the container from exiting
|
||||
# tail -f /dev/null
|
||||
|
||||
Reference in New Issue
Block a user