Persistence

The persistence APK enables modification of core /etc files.

Note

Installing this package is optional, but recommended, especially for managing the Docker logs and /etc/hosts

Installation

Usage

The following files from /share/Configuration/persistence can be edited:

  • hosts: All files in a /share/Configuration/*/persist.d/etc/hosts, notice the wildcard, will be appended to the default /etc/hosts

  • resolv.conf: If this file exists, then it will replace the default file. This enables adding “search” lines. A sample file called resolv.sample.conf exists in the folder.

  • docker/daemon.json: This file enables configuring the Docker daemon, and especially rotating the logs that Docker writes to.

  • Restart the application, either through the Asustor web interface or via SSH using the following command: /share/Configuration/persistence/start-stop.sh restart