Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backport #1426 to 0.6 #1427

Merged
merged 2 commits into from
Jun 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions pkg/debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
tempesta-fw-dkms (0.6.7) stretch; urgency=medium

* Fix issues when starting Tempesta via systemd (#1420).

-- Tempesta Technologies, Inc. <info@tempesta-tech.com> Thu, 25 Jun 2020 20:11:18 +0500


tempesta-fw-dkms (0.6.6) stretch; urgency=medium

* TempestaTLS 0.2 (tight TCP integration, fast handshake FSM)
* HTTPtables
* Sticky cookie extension for L7 DDoS mitigation
* Multiple HTTP limiting extensions
* SIMD memory functions
* Temporal client accounting
* Multiple bugfixes

-- Tempesta Technologies, Inc. <info@tempesta-tech.com> Wed, 10 Jun 2020 11:10:28 +0500

tempesta-fw-dkms (0.5.0) stretch; urgency=medium

* Add HTTP health monitoring
Expand Down
4 changes: 3 additions & 1 deletion pkg/debian/tempesta-fw.service
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ Environment="TDB_PATH=/lib/modules/%v/updates/dkms/"
Environment="TLS_PATH=/lib/modules/%v/updates/dkms/"
Environment="LIB_PATH=/lib/modules/%v/updates/dkms/"
Environment=TFW_CFG_PATH=/etc/tempesta/tempesta_fw.conf
Environment="TFW_SYSTEMD=1"
RemainAfterExit=yes
ExecStart=/lib/tempesta/scripts/tempesta.sh --start
ExecStop=/lib/tempesta/scripts/tempesta.sh --stop
ExecStopPost=/lib/tempesta/scripts/tempesta.sh --stop
ExecReload=/lib/tempesta/scripts/tempesta.sh --reload
TimeoutSec=infinity

[Install]
WantedBy=multi-user.target
14 changes: 8 additions & 6 deletions scripts/tempesta.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@
# this program; if not, write to the Free Software Foundation, Inc., 59
# Temple Place - Suite 330, Boston, MA 02111-1307, USA.

if [ "${TEMPESTA_LCK}" != "$0" ]; then
env TEMPESTA_LCK="$0" flock -n -E 254 "/tmp/tempesta-lock-file" "$0" "$@"
if [ $? -eq 254 ]; then
echo "Cannot operate with Tempesta FW: locked by another process"
exit 3
if [ -z "$TFW_SYSTEMD" ]; then
if [ "${TEMPESTA_LCK}" != "$0" ]; then
env TEMPESTA_LCK="$0" flock -n -E 254 "/tmp/tempesta-lock-file" "$0" "$@"
if [ $? -eq 254 ]; then
echo "Cannot operate with Tempesta FW: locked by another process"
exit 3
fi
exit
fi
exit
fi

. "$(dirname $0)/tfw_lib.sh"
Expand Down