From 10146429f96478f8f243727d7cdb23a3fd9e046d Mon Sep 17 00:00:00 2001 From: binary Date: Wed, 2 Dec 2020 18:53:37 +0100 Subject: Add freebsd rc. --- roles/rc/templates/rc_bsd.j2 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 roles/rc/templates/rc_bsd.j2 (limited to 'roles/rc/templates/rc_bsd.j2') 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 -- cgit v1.2.3