diff --git a/cfg/pgr/postgrest.service b/cfg/pgr/postgrest.service new file mode 100644 index 0000000..2ef5a5f --- /dev/null +++ b/cfg/pgr/postgrest.service @@ -0,0 +1,12 @@ +[Unit] +Description=PostgREST +After=network.target + +[Service] +User=postgrest +Group=postgrest +ExecStart=/usr/local/bin/postgrest /etc/postgrest/config +ExecReload=/bin/kill -SIGUSR1 $MAINPID + +[Install] +WantedBy=multi-user.target