12 lines
245 B
Bash
Executable File
12 lines
245 B
Bash
Executable File
#!/bin/bash
|
|
|
|
script_dir=$(readlink -f $(dirname $0))
|
|
|
|
echo "Starting nginx"
|
|
echo "Press Ctrl+C to stop"
|
|
mkdir -p "$script_dir/nginx/cache"
|
|
"$script_dir/nginx/sbin/nginx" \
|
|
-c "$script_dir/restream.conf" \
|
|
-g "daemon off;" \
|
|
-e /dev/stderr
|