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
643 B
Text
Raw Normal View History

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