aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc/templates/rc_bsd.j2
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-12-02 18:53:37 +0100
committerbinary <me@rgoncalves.se>2020-12-02 18:53:37 +0100
commit10146429f96478f8f243727d7cdb23a3fd9e046d (patch)
tree4a442b7edf354e2cd206e407493dd662ab4af544 /roles/rc/templates/rc_bsd.j2
parentd607fd2bbd87b5c485a2da961bd03a0d1ae2edcd (diff)
downloadinfrastructure-10146429f96478f8f243727d7cdb23a3fd9e046d.tar.gz
Add freebsd rc.
Diffstat (limited to 'roles/rc/templates/rc_bsd.j2')
-rw-r--r--roles/rc/templates/rc_bsd.j215
1 files changed, 15 insertions, 0 deletions
diff --git a/roles/rc/templates/rc_bsd.j2 b/roles/rc/templates/rc_bsd.j2
new file mode 100644
index 0000000..b64181b
--- /dev/null
+++ b/roles/rc/templates/rc_bsd.j2
@@ -0,0 +1,15 @@
+{% if ansible_distribution == "OpenBSD" %}
+#!/bin/ksh
+{% else %}
+#!/bin/ksh
+{% endif %}
+#
+# managed by Ansible
+
+daemon="{{ rc_cmd }}"
+daemon_flags="{{ rc_args }}"
+daemon_user="{{ rc_user }}"
+
+. /etc/rc.d/rc.subr
+
+rc_cmd $1
remember that computers suck.