build: add system service file to support multi setup (#2873)

* using the '@' in a service file allows multiple instances
this enables system to load authelia with multiple configuration files

Signed-off-by: Toshaan Bharvani <toshaan@vantosh.com>

Co-authored-by: Clément Michaud <clement.michaud34@gmail.com>
This commit is contained in:
Toshaan Bharvani 2022-03-01 22:52:49 +01:00 committed by GitHub
parent decc4fd05e
commit 2e2096023c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
authelia@.service Normal file
View File

@ -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