mirror of
https://github.com/donaldzou/WGDashboard.git
synced 2025-10-08 10:16:17 +00:00
Added a SIGTERM trap to the entrypoint script for faster stopping.
This commit is contained in:
@@ -3,6 +3,14 @@
|
||||
# Path to the configuration file (exists because of previous function).
|
||||
config_file="/data/wg-dashboard.ini"
|
||||
|
||||
trap 'stop_service' SIGTERM
|
||||
|
||||
stop_service() {
|
||||
echo "[WGDashboard] Stopping WGDashboard..."
|
||||
./wgd.sh stop
|
||||
exit 0
|
||||
}
|
||||
|
||||
echo "------------------------- START ----------------------------"
|
||||
echo "Starting the WireGuard Dashboard Docker container."
|
||||
|
||||
|
Reference in New Issue
Block a user