mirror of
				https://github.com/kevinveenbirkenbach/computer-playbook.git
				synced 2025-10-31 02:10:05 +00:00 
			
		
		
		
	sys-service: add systemd_directive filter and refactor service template
Introduced custom filter plugin to render optional systemd directives, refactored template to loop over directives, and adjusted default vars (TimeoutStartSec, RuntimeMaxSec handling). Details: see ChatGPT conversation https://chatgpt.com/share/68a5a730-6344-800f-b9a3-dc62d5902e9b
This commit is contained in:
		| @@ -17,8 +17,9 @@ system_service_script_inter:   "/bin/{{ 'bash' if system_service_script_type == | ||||
| system_service_script_exec:    "{{ system_service_script_inter }} {{ system_service_id | get_service_script_path( system_service_script_type ) }}" | ||||
|  | ||||
| # Service template | ||||
| system_service_tpl_on_failure:      "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}" | ||||
| system_service_tpl_type:            "oneshot" | ||||
| system_service_tpl_exec_start:      "{{ system_service_script_exec }}" | ||||
| system_service_tpl_runtime:         "{{ SYS_SERVICE_DEFAULT_RUNTIME }}" | ||||
| system_service_tpl_exec_start_pre:  "" | ||||
| system_service_tpl_on_failure:        "{{ SYS_SERVICE_ON_FAILURE_COMPOSE }}" | ||||
| system_service_tpl_type:              "oneshot" | ||||
| system_service_tpl_exec_start:        "{{ system_service_script_exec }}" | ||||
| system_service_tpl_runtime:           "{{ '' if system_service_tpl_type == 'oneshot' else SYS_SERVICE_DEFAULT_RUNTIME }}" | ||||
| system_service_tpl_exec_start_pre:    "" | ||||
| system_service_tpl_timeout_start_sec: "60s" | ||||
		Reference in New Issue
	
	Block a user