install + build fixes
This commit is contained in:
parent
35b09db127
commit
69e2234828
4 changed files with 6 additions and 5 deletions
2
build
2
build
|
@ -90,7 +90,7 @@ pushd $TOP/sources/nginx
|
||||||
|
|
||||||
# needed for lua-nginx-module
|
# needed for lua-nginx-module
|
||||||
export LUAJIT_INC="$PREFIX/include/luajit-2.1"
|
export LUAJIT_INC="$PREFIX/include/luajit-2.1"
|
||||||
export LUAJIT_LIB="$PREFIX/nginx/lib"
|
export LUAJIT_LIB="$PREFIX/lib"
|
||||||
|
|
||||||
# TODO: see ./install for --sbin-path
|
# TODO: see ./install for --sbin-path
|
||||||
./auto/configure \
|
./auto/configure \
|
||||||
|
|
4
install
4
install
|
@ -15,9 +15,9 @@ sudo systemctl stop nginx-cn
|
||||||
# strip binary of unneeded fluff (saving the original)
|
# strip binary of unneeded fluff (saving the original)
|
||||||
cp nginx/objs/nginx nginx/objs/nginx.unstripped
|
cp nginx/objs/nginx nginx/objs/nginx.unstripped
|
||||||
strip nginx/objs/nginx
|
strip nginx/objs/nginx
|
||||||
# FIXME: /opt/nginx/bin would probably be less annoying tbh..
|
sudo cp nginx/objs/nginx /opt/nginx/bin
|
||||||
sudo cp nginx/objs/nginx /opt/nginx/usr/bin
|
|
||||||
sudo systemctl start nginx-cn
|
sudo systemctl start nginx-cn
|
||||||
#sudo make install
|
#sudo make install
|
||||||
|
echo "Binary installed. You should probably copy the sample configuration to /opt/nginx/etc/nginx."
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,9 @@ PrivateDevices=yes
|
||||||
PrivateTmp=true
|
PrivateTmp=true
|
||||||
SyslogLevel=err
|
SyslogLevel=err
|
||||||
|
|
||||||
ExecStart=/opt/nginx/usr/bin/nginx
|
ExecStart=/opt/nginx/bin/nginx
|
||||||
ExecReload=/opt/nginx/usr/bin/nginx -s reload
|
ExecReload=/opt/nginx/bin/nginx -s reload
|
||||||
|
Environment=LD_LIBRARY_PATH=/opt/nginx/lib
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
KillMode=mixed
|
KillMode=mixed
|
||||||
KillSignal=SIGQUIT
|
KillSignal=SIGQUIT
|
||||||
|
|
Loading…
Reference in a new issue