aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc
diff options
context:
space:
mode:
authorbinary <me@rgoncalves.se>2020-11-22 21:12:31 +0100
committerbinary <me@rgoncalves.se>2020-11-22 21:12:31 +0100
commit3f150dc61d4f04919c16220baad1e8b48824ed5e (patch)
treea60bfc844a39652d71c442f689a597f93977caee /roles/rc
parent6746afe17d4abf78195bb914eee0a416b625c4ed (diff)
downloadinfrastructure-3f150dc61d4f04919c16220baad1e8b48824ed5e.tar.gz
Draft for rc on freebsd.
Diffstat (limited to 'roles/rc')
-rw-r--r--roles/rc/templates/rc_freebsd.j211
1 files changed, 11 insertions, 0 deletions
diff --git a/roles/rc/templates/rc_freebsd.j2 b/roles/rc/templates/rc_freebsd.j2
new file mode 100644
index 0000000..30f1c0a
--- /dev/null
+++ b/roles/rc/templates/rc_freebsd.j2
@@ -0,0 +1,11 @@
+#!/bin/ksh
+#
+# 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.