How to add a script to autostart ESXI 5.5

Voznikla neobkhodimost’ dobavit’ storonniy skript v avtozagruzku gipervizora ESXI 5.5. Prakticheski vse fayly po umolchaniyu v sisteme dostupny tol’ko v rezhime dlya chteniya. No, otredaktirovav fayl /etc/rc.local.d/local.sh, mozhno bez problem dobavit’ v avtozagruzku kakoy-to skript ili kakiye-libo operatsii.

Otkroyem fayl redaktorom vi:
# vi /etc/rc.local.d/local.sh

Dlya vklyucheniya rezhima redaktirovaniya zhmem “i” ili “insert” i vstavlyayem pered exit 0 ssylku na svoy skript:
#!/bin/sh

# local configuration options

# Note: modify at your own risk! If you do/use anything in this
# script that is not part of a stable API (relying on files to be in
# specific places, specific tools, specific output, etc) there is a
# possibility you will end up with a broken system after patching or
# upgrading. Changes are not supported unless under direction of
# VMware support.
/vmfs/volumes/ESXI/prtg-scripts/copy.sh
exit 0

Sovet: razmeshchat’ skripty i fayly nuzhno na smontirovannoy faylovoy sisteme, na kotoroy razmeshchayutsya vashi virtual’nyye mashiny i procheye, potomu chto yesli vy razmestite fayly v standartnom meste tipa /var/ ili /etc/, posle perezagruzki oni udalyatsya.

There was a need to add a third-party script to autostart hypervisor ESXI 5.5. Almost all of the files by default in the system are available only in the read. But by editing /etc/rc.local.d/local.sh, you can easily add to autostart any script or any transactions.

Open the file editor vi:
# Vi /etc/rc.local.d/local.sh

To enable editing click “i” or “insert” and insert before exit 0 link to your script:
#! / Bin / sh

# Local configuration options

# Note: modify at your own risk! If you do / use anything in this
# Script that is not part of a stable API (relying on files to be in
# Specific places, specific tools, specific output, etc) there is a
# Possibility you will end up with a broken system after patching or
# Upgrading. Changes are not supported unless under direction of
# VMware support.
/vmfs/volumes/ESXI/prtg-scripts/copy.sh
exit 0

Tip: place the scripts and files needed for a mounted file system that hosts your virtual machines, and so on, because if you put the files in a standard location such as / var / or / etc /, after the restart will be deleted.