🔧 Use environment variables file in systemd service config

develop
Maxim Lebedev 2 weeks ago
parent ddc73036a8
commit 43af05a02b
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5

@ -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…
Cancel
Save