From 2e2096023ce8cd60e2dca81f8df9c657be9b9a8a Mon Sep 17 00:00:00 2001 From: Toshaan Bharvani Date: Tue, 1 Mar 2022 22:52:49 +0100 Subject: [PATCH] build: add system service file to support multi setup (#2873) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * using the '@' in a service file allows multiple instances this enables system to load authelia with multiple configuration files Signed-off-by: Toshaan Bharvani Co-authored-by: Clément Michaud --- authelia@.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 authelia@.service diff --git a/authelia@.service b/authelia@.service new file mode 100644 index 00000000..1761637d --- /dev/null +++ b/authelia@.service @@ -0,0 +1,10 @@ +[Unit] +Description=Authelia authentication and authorization server +After=multi-user.target + +[Service] +ExecStart=/usr/bin/authelia --config /etc/authelia/%i.yml +SyslogIdentifier=authelia-%i + +[Install] +WantedBy=multi-user.target