aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc
diff options
context:
space:
mode:
Diffstat (limited to 'roles/rc')
-rw-r--r--roles/rc/templates/rc_alpine.j29
-rw-r--r--roles/rc/vars/main.yml2
2 files changed, 10 insertions, 1 deletions
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: /
remember that computers suck.