Make example configuration self documenting Most services on *nix type systems have configuration files that are self documenting. This usually entails: - listing all configuration options with some sane default values - commenting out options that do not need to be set or match the binary default value - some explanatory comments where needed This simplifies management of the service as configuration can be understood and modified in place without having to open up the internet. This diff also groups settings into logical blocks: - basic server settings - directory settings - behavioural settings Improve contrib system file behaviour This diff improves gonic serive files in the following way: - Define a sane default for gonig cache, which will map well to established cache paths on most Linux systems - Update service file to use StateDirectory=, CacheDirectory= directives to create /var/lib/gonic and /var/cache/gonic directories respectively - Add a tmpfilesd sample configuration that will automatically clean cache files if they are older than 7 days - Add sysysers configuration file that can be used in sysusers.d to create relevant gonic user and group during installation.
2 lines
34 B
Plaintext
2 lines
34 B
Plaintext
u gonic - "user for gonic daemon"
|