Custom Unit hosts file
Learn how to create and edit a custom "hosts" file within a unit or service directory, and discover the steps to reload or restart the unit for changes to take effect. Ideal for those managing server configurations.
Create a file called "hosts" within the unit/service directory.
For example:
/var/glitch-units/<unit>/service/hosts
Edit the file and add custom host servers
Use the standard hosts file format, one entry per line: the IP address, then the host name and any aliases. For example:
192.168.10.20 db01.example.local db01
192.168.10.21 files.example.local files
Reload / Restart the unit
gl -d <unit>
gl -s <unit>
Managing modern applications across servers, networks, and environments can quickly become complex and costly.
EssingtonITS GL Server is a powerful platform designed to simplify the deployment and management of containerised application Units. Whether running a single server or a large multi-environment infrastructure, GL Server helps organisations deliver secure, scalable, and resilient services without requiring in-house DevOps expertise.
person people found this useful.