1 2 3 4 5 6 7
#!/bin/sh PID="${XDG_RUNTIME_DIR:-"/run/user/$(id -ru)"}/nginx.pid" CONFIG="${XDG_CONFIG_HOME:-"${HOME}/.config"}/nginx/nginx.conf" DATA="${XDG_DATA_HOME:-"${HOME}/.local/share"}/nginx" exec nginx -g "pid '${PID}';" -c "${CONFIG}" -p "${DATA}" -e stderr "$@"