mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			636 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			636 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
| [Unit]
 | |
| Description={{ SOFTWARE_NAME }} - Service for role '{{ system_service_id }}'
 | |
| {{ system_service_tpl_on_failure | systemd_directive('OnFailure') }}
 | |
| StartLimitIntervalSec=60
 | |
| StartLimitBurst=3
 | |
| OnFailureJobMode=replace-irreversibly
 | |
| 
 | |
| [Service]
 | |
| Type={{ system_service_tpl_type }}
 | |
| {% for key, val in [
 | |
|   ('TimeoutStartSec', system_service_tpl_timeout_start_sec),
 | |
|   ('ExecStartPre',    system_service_tpl_exec_start_pre),
 | |
|   ('ExecStart',       system_service_tpl_exec_start),
 | |
|   ('ExecStartPost',   system_service_tpl_exec_start_post),
 | |
|   ('RuntimeMaxSec',   system_service_tpl_runtime),
 | |
| ] %}
 | |
| {{ val | systemd_directive(key) }}
 | |
| {% endfor %} |