%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/systemd/system/
Upload File :
Create Path :
Current File : //usr/lib/systemd/system/plesk-ip-remapping.service

# Copyright 1999-2023. Plesk 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 "`/usr/local/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=/usr/local/psa/bin/ipmanage --auto-remap -with-public-reload

[Install]
WantedBy=multi-user.target

Zerion Mini Shell 1.0