🔧 Use environment variables file in systemd service config
This commit is contained in:
parent
ddc73036a8
commit
43af05a02b
1 changed files with 7 additions and 6 deletions
|
@ -1,18 +1,19 @@
|
|||
[Unit]
|
||||
After=network.target
|
||||
After=syslog.target
|
||||
Description=Personal IndieAuth server instance
|
||||
Documentation=https://indieauth.net/source/
|
||||
After=syslog.target
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
EnvironmentFile=/etc/indieauth/env
|
||||
ExecStart=/usr/local/bin/indieauth
|
||||
Group=indieweb
|
||||
Restart=always
|
||||
RestartSec=2s
|
||||
Type=simple
|
||||
User=indieweb
|
||||
Group=indieweb
|
||||
WorkingDirectory=/var/lib/indieauth/
|
||||
ExecStart=/usr/local/bin/indieauth --config=/etc/indieauth/config.yml
|
||||
Restart=always
|
||||
|
||||
[Install]
|
||||
Alias=indieauth
|
||||
WantedBy=multi-user.target
|
||||
WantedBy=multi-user.target
|
||||
|
|
Loading…
Reference in a new issue