Subject: [bug#26830] Allow services to implement a 'reload' action

From: Oleg Pykhalov <[email-masked]>
Date: Thu, 24 Mar 2022 16:52:58 +0300

Hi,

Ludovic Courtès <[email-masked]> writes:

[…]

> I wonder if the patch as-is would achieve that though, because in
> general those daemons are run with ‘-c /gnu/store/…-config’, so
> reloading would just reload the same file.

Maybe we could switch to another practice in service definitions:

‘/gnu/store/...-some-program/bin/some-program -c /etc/some-config’

$ ls -l /etc/static
/etc/static -> /gnu/store/...-etc/etc

$ ls -l /etc/some-config
/etc/some-config -> /etc/static/some-config