Debian init script for postgrest.

This commit is contained in:
Max Khon
2015-06-24 18:07:30 +06:00
parent 25492a089b
commit b56ab47f84
3 changed files with 109 additions and 0 deletions
Vendored Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
d=$(dirname $0)
if [ -f /etc/default/postgrest ]; then
. /etc/default/postgrest
fi
POSTGREST_LOG=${POSTGREST_LOG:-/var/log/postgrest/postgrest.log}
exec $d/postgrest "$@" >>$POSTGREST_LOG 2>&1 &