mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
cde237b687
- ensure use of HTTP POST method : HTTP GET should only be used for information retrieval and not to perform server side effect operations (see HTTP standard https://tools.ietf.org/html/rfc7231#section-4.2.1) - a transaction token is now required for these administrative form submissions to ensure the request can not be included in an external site and performed silently/by mistake by the user browser
16 lines
479 B
Bash
Executable File
16 lines
479 B
Bash
Executable File
#!/usr/bin/env sh
|
|
cd `dirname $0`
|
|
|
|
(bin/protectedPostApiCall.sh "Steering.html" "shutdown=true" > /dev/null && \
|
|
|
|
echo "Please wait until the YaCy daemon process terminates [wget]" && \
|
|
echo "You can monitor this with 'tail -f DATA/LOG/yacy00.log' and 'fuser log/yacy00.log'") || \
|
|
exit $?
|
|
|
|
# wait until the yacy.running file disappears which means that YaCy has terminated
|
|
# If you don't want to wait, just run this concurrently
|
|
while [ -f "DATA/yacy.running" ]
|
|
do
|
|
sleep 1
|
|
done
|