This repository has been archived on 2023-02-05. You can view files and clone it, but cannot push or open issues or pull requests.
pyinfra-linkding/templates/systemd.service.j2

21 lines
679 B
Django/Jinja

[Unit]
Description={{ host.data.systemd['Description'] }}
After=network.target
[Service]
Type=simple
User={{ host.data.systemd['User'] }}
Group={{ host.data.systemd['Group'] }}
EnvironmentFile={{ host.data.systemd['EnvironmentFile'] }}
WorkingDirectory={{ host.data.systemd['WorkingDirectory'] }}
RootDirectory={{ host.data.systemd['RootDirectory'] }}
ReadWritePaths={{ host.data.systemd['ReadWritePaths'] | join(' ') }}
BindPaths={{ host.data.systemd['BindPaths'] | join(' ') }}
BindReadOnlyPaths={{ host.data.systemd['BindReadOnlyPaths'] | join(' ') }}
ExecStart={{ host.data.systemd['ExecStart'] }}
KillSignal=SIGQUIT
Restart=on-failure
[Install]
WantedBy=multi-user.target