Files
server/usr/lib/systemd/system/plesk-ip-remapping.service
2026-01-07 20:52:11 +01:00

18 lines
751 B
Desktop File

# Copyright 1999-2025. WebPros International GmbH. All rights reserved.
[Unit]
Description=Plesk IP remapping
Wants=mariadb.service mysql.service network-online.target
After=mariadb.service mysql.service network-online.target
[Service]
Type=oneshot
# unfortunatelly network-online.target may be reached earlier than all IPs are obtained
# so additional check should be performed and delay should be done if needed
ExecStartPre=/bin/bash -c 'for i in {1..30}; do [ -z "`/opt/psa/admin/sbin/ifmng -l`" ] && sleep 1 || break; done;'
ExecStartPre=/bin/bash -c 'for i in {1..10}; do /usr/bin/mysqladmin ping -s 1>/dev/null && break || sleep 1; done;'
ExecStart=/opt/psa/bin/ipmanage --auto-remap -with-public-reload
[Install]
WantedBy=multi-user.target