Skip to content

Commit

Permalink
Better init process handling (#13)
Browse files Browse the repository at this point in the history
* Better init process handling
* release-notes update
* Adding build and release workflows
  • Loading branch information
k0gen authored Apr 21, 2023
1 parent 9f76062 commit b79ca06
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/releaseService.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref_name }}
name: searxng ${{ github.ref_name }}
name: SearXNG ${{ github.ref_name }}
body_path: change-log.txt
files: |
searxng.s9pk
Expand Down
15 changes: 13 additions & 2 deletions docker_entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
#!/bin/sh

set -e
set -ea

_term() {
echo "Caught TERM signal!"
kill -TERM "$redis_process" 2>/dev/null
kill -TERM "$searxng_process" 2>/dev/null
}

# Configuring SearXNG
echo 'Configuring SearXNG...'
Expand Down Expand Up @@ -35,6 +41,11 @@ echo 'data:' >> /root/start9/stats.yaml
# Initializing Database
echo 'Starting Redis...'
redis-server --save "" --appendonly "no" &
redis_process=$!

# Starting SearXNG
exec tini /usr/local/searxng/dockerfiles/docker-entrypoint.sh
sh /usr/local/searxng/dockerfiles/docker-entrypoint.sh &
searxng_process=$!

trap _term TERM
wait $redis_process $searxng_process
2 changes: 1 addition & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
id: searxng
title: "SearXNG"
version: 1.0.0.2
release-notes: |
release-notes: |
* Update SearXNG code to latest version from upstream
* Fix for duckduckgo (access denied)
* Minor code fixes and changes
Expand Down

0 comments on commit b79ca06

Please sign in to comment.