From 2927544ce379f607670768cc61252039c627058a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Wed, 15 Dec 2021 18:21:17 +0000 Subject: roles: Add rc for service file creation Supports openrc and rc for Alpine and OpenBSD --- roles/rc/templates/os_alpine.j2 | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 roles/rc/templates/os_alpine.j2 (limited to 'roles/rc/templates/os_alpine.j2') diff --git a/roles/rc/templates/os_alpine.j2 b/roles/rc/templates/os_alpine.j2 new file mode 100644 index 0000000..a84d787 --- /dev/null +++ b/roles/rc/templates/os_alpine.j2 @@ -0,0 +1,13 @@ +#!/sbin/openrc-run +# managed by Ansible + +supervisor="supervise-daemon" + +description="{{ rc_name }} {{ rc_description }}" +description_reload="Reload {{ rc_name }}" + +command="{{ rc_cmd }}" +command_args="{{ rc_args }}" +command_user="{{ rc_user }}" + +directory="{{ rc_runtime_dir }}" -- cgit v1.2.3