Repository URL to install this package:
|
Version:
1.0.0b1 ▾
|
[Unit]
Description={{ systemd_service_Unit_Description }}
{% if systemd_service_Unit_Documentation is defined %}
Documentation={{ systemd_service_Unit_Documentation }}
{% endif -%}
{% if systemd_service_Unit_Requires is defined %}
{% if systemd_service_Unit_Requires is string %}
Requires={{ systemd_service_Unit_Requires }}
{% else %}
Requires={{ systemd_service_Unit_Requires | join(",") }}
{% endif %}
{% endif -%}
{% if systemd_service_Unit_Wants is defined %}
{% if systemd_service_Unit_Wants is string %}
Wants={{ systemd_service_Unit_Wants }}
{% else %}
Wants={{ systemd_service_Unit_Wants | join(",") }}
{% endif %}
{% endif -%}
{% if systemd_service_Unit_ConditionPathExists is defined %}
{% if systemd_service_Unit_ConditionPathExists is string %}
ConditionPathExists={{ systemd_service_Unit_ConditionPathExists }}
{% endif -%}
{% endif -%}
{% if systemd_service_Unit_Before is defined %}
{% if systemd_service_Unit_Before is string %}
Before={{ systemd_service_Unit_Before }}
{% else %}
Before={{ systemd_service_Unit_Before | join(",") }}
{% endif %}
{% endif -%}
{% if systemd_service_Unit_After is defined %}
{% if systemd_service_Unit_After is string %}
After={{ systemd_service_Unit_After }}
{% else %}
After={{ systemd_service_Unit_After | join(",") }}
{% endif %}
{% endif -%}
[Service]
ExecStart={{ systemd_service_Service_ExecStart }}
{% if systemd_service_Service_EnvironmentFile is defined and systemd_service_Service_EnvironmentFile %}
EnvironmentFile={{ systemd_service_Service_EnvironmentFile }}
{% else %}
EnvironmentFile=-{{ systemd_service_default_dir }}/{{ systemd_service_name }}
{% endif %}
Type={{ systemd_service_Service_Type }}
{% if systemd_service_Service_Environment is defined %}
Environment={{ systemd_service_Service_Environment }}
{% endif -%}
{% if systemd_service_Service_User is defined %}
User={{ systemd_service_Service_User }}
{% endif -%}
{% if systemd_service_Service_Group is defined %}
Group={{ systemd_service_Service_Group }}
{% endif -%}
{% if systemd_service_Service_WorkingDirectory is defined %}
WorkingDirectory={{ systemd_service_Service_WorkingDirectory }}
{% endif -%}
{% if systemd_service_ExecReload is defined %}
ExecReload={{ systemd_service_ExecReload }}
{% endif -%}
{% if systemd_service_Service_ExecStop is defined %}
ExecStop={{ systemd_service_Service_ExecStop }}
{% endif -%}
{% if systemd_service_Service_KillMode is defined %}
KillMode={{ systemd_service_Service_KillMode }}
{% endif -%}
{% if systemd_service_Service_ExecStartPre is defined %}
{% if systemd_service_Service_ExecStartPre is string %}
ExecStartPre={{ systemd_service_Service_ExecStartPre }}
{% elif systemd_service_Service_ExecStartPre is iterable %}
{% for i in systemd_service_Service_ExecStartPre %}
ExecStartPre={{ i }}
{% endfor %}
{% endif %}
{% endif -%}
{% if systemd_service_Service_ExecStartPost is defined -%}
{% if systemd_service_Service_ExecStartPost is string -%}
ExecStartPost={{ systemd_service_Service_ExecStartPost }}
{% elif systemd_service_Service_ExecStartPost is iterable -%}
{% for i in systemd_service_Service_ExecStartPost -%}
ExecStartPost={{ i }}
{% endfor %}
{% endif %}
{% endif -%}
{% if systemd_service_Service_ExecStopPost is defined %}
{% if systemd_service_Service_ExecStopPost is string -%}
ExecStopPost={{ systemd_service_Service_ExecStopPost }}
{% elif systemd_service_Service_ExecStopPost is iterable -%}
{% for i in systemd_service_Service_ExecStopPost -%}
ExecStopPost={{ i }}
{% endfor %}
{% endif %}
{% endif -%}
{% if systemd_service_Service_PermissionsStartOnly is defined %}
PermissionsStartOnly={{ systemd_service_Service_PermissionsStartOnly }}
{% endif %}
{% if systemd_service_Service_PIDFile is defined %}
PIDFile={{ systemd_service_Service_PIDFile }}
{% endif %}
{% if systemd_service_Service_BusName is defined %}
BusName={{ systemd_service_Service_BusName }}
{% endif %}
{% if systemd_service_Service_Restart is defined %}
Restart={{ systemd_service_Service_Restart }}
{% endif %}
{% if systemd_service_Service_RestartSec is defined %}
RestartSec={{ systemd_service_Service_RestartSec }}
{% endif %}
{% if systemd_service_Service_PrivateTmp is defined %}
PrivateTmp={{ systemd_service_Service_PrivateTmp }}
{% endif -%}
{% if systemd_service_Service_LimitNOFILE is defined %}
LimitNOFILE={{ systemd_service_Service_LimitNOFILE }}
{% endif -%}
{% if systemd_service_Service_RuntimeDirectory is defined %}
RuntimeDirectory={{ systemd_service_Service_RuntimeDirectory }}
{% endif -%}
{% if systemd_service_Service_RuntimeDirectoryMode is defined %}
RuntimeDirectoryMode={{ systemd_service_Service_RuntimeDirectoryMode }}
{% endif -%}
{% if systemd_service_Service_SuccessExitStatus is defined %}
SuccessExitStatus={{ systemd_service_Service_SuccessExitStatus }}
{% endif -%}
{% if systemd_service_Service_RestartPreventExitStatus is defined %}
RestartPreventExitStatus={{ systemd_service_Service_RestartPreventExitStatus }}
{% endif -%}
{% if systemd_service_Service_GuessMainPID is defined %}
GuessMainPID={{ systemd_service_Service_GuessMainPID }}
{% endif -%}
{% if systemd_service_Service_RemainAfterExit is defined %}
RemainAfterExit={{ systemd_service_Service_RemainAfterExit }}
{% endif -%}
{% if systemd_service_Service_TimeoutStartSec is defined %}
TimeoutStartSec={{ systemd_service_Service_TimeoutStartSec }}
{% endif -%}
{% if systemd_service_Service_TimeoutStopSec is defined %}
TimeoutStopSec={{ systemd_service_Service_TimeoutStopSec }}
{% endif -%}
[Install]
{% if systemd_service_Install_WantedBy is defined %}
WantedBy={{ systemd_service_Install_WantedBy }}
{% endif -%}
{% if systemd_service_Install_RequiredBy is defined %}
RequiredBy={{ systemd_service_Install_RequiredBy }}
{% endif -%}
{% if systemd_service_Install_Also is defined %}
Also={{ systemd_service_Install_Also }}
{% endif -%}
{% if systemd_service_Install_Alias is defined %}
Alias={{ systemd_service_Install_Alias }}
{% endif %}