From aab7c2168fba94a0b5ffbd997a8d6e4dea6361ce Mon Sep 17 00:00:00 2001 From: binary Date: Sat, 21 Nov 2020 16:25:08 +0100 Subject: Start in daemon mode and fix user privileges. --- roles/rc/templates/rc_alpine.j2 | 9 ++++++++- roles/rc/vars/main.yml | 2 ++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'roles') diff --git a/roles/rc/templates/rc_alpine.j2 b/roles/rc/templates/rc_alpine.j2 index 217cd05..5720f2e 100644 --- a/roles/rc/templates/rc_alpine.j2 +++ b/roles/rc/templates/rc_alpine.j2 @@ -2,6 +2,13 @@ # # managed by Ansible +supervisor="supervise-daemon" + +description="{{ rc_name }} {{ rc_description }}" +description_reload="Reload {{ rc_name }}" + command="{{ rc_cmd }}" command_args="{{ rc_args }}" -user="{{ rc_user }}" +command_user="{{ rc_user }}" + +directory="{{ rc_dir }}" diff --git a/roles/rc/vars/main.yml b/roles/rc/vars/main.yml index 764db13..02ce7cd 100644 --- a/roles/rc/vars/main.yml +++ b/roles/rc/vars/main.yml @@ -6,5 +6,7 @@ rc_alpine_dir: "/etc/init.d" rc_openbsd_dir: "/etc/rc.d" +rc_description: managed by Ansible rc_state: restarted rc_enable: true +rc_dir: / -- cgit v1.2.3