server running in background

This commit is contained in:
Mohd-
2025-03-07 15:11:34 +03:00
parent 33a2253e3d
commit 9678b1222e
4 changed files with 71 additions and 16 deletions
+15
View File
@@ -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