aboutsummaryrefslogtreecommitdiffstats
path: root/roles/rc/templates/os_openbsd.j2
blob: cc1f4440e6dd75d40ea47a6a01070f15783364be (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.