aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc/templates/os_openbsd.j2
diff options
context:
space:
mode:
Diffstat (limited to 'roles/rc/templates/os_openbsd.j2')
-rw-r--r--roles/rc/templates/os_openbsd.j217
1 files changed, 17 insertions, 0 deletions
diff --git a/roles/rc/templates/os_openbsd.j2 b/roles/rc/templates/os_openbsd.j2
new file mode 100644
index 0000000..cc1f444
--- /dev/null
+++ b/roles/rc/templates/os_openbsd.j2
@@ -0,0 +1,17 @@
+#!/bin/ksh
+# managed by Ansible
+
+daemon="{{ rc_cmd }}"
+daemon_flags="{{ rc_args }}"
+daemon_user="{{ rc_user }}"
+daemon_dir="{{ rc_runtime_dir }}"
+
+rc_bg="{{ "YES" if rc_bg else "NO" }}"
+
+{% if rc_pexp is defined and rc_pexp %}
+pexp="${daemon} ${daemon_flags}"
+{% endif %}
+
+. /etc/rc.d/rc.subr
+
+rc_cmd $1
remember that computers suck.