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
2021-11-15 22:23:45 +09:00

21 lines
643 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'] }}
BindPaths={{ host.data.systemd['BindPaths'] }}
BindReadOnlyPaths={{ host.data.systemd['BindReadOnlyPaths'] }}
ExecStart={{ host.data.systemd['ExecStart'] }}
KillSignal=SIGQUIT
Restart=on-failure
[Install]
WantedBy=multi-user.target