aboutsummaryrefslogblamecommitdiffstats
path: root/roles/rc/templates/rc_openbsd.j2
blob: 6e60807e67e836fb47fbdd04fa3da079acf53c8e (plain) (tree)
1
2
3
4
5
6
          




                            






                                                   


                   






                                                                      
         
#!/bin/ksh
# managed by Ansible

daemon="{{ rc_cmd }}"
daemon_flags="{{ rc_args }}"
daemon_user="{{ rc_user }}"
daemon_dir="{{ rc_dir }}"

rc_bg="{{ "YES" if rc_dir is defined else "NO" }}"

{% if rc_strictpexp is defined and rc_strictpexp %}
pexp="${daemon} ${daemon_flags}"
{% endif %}

. /etc/rc.d/rc.subr

{% if rc_dir is defined %}
rc_start() {
	${rcexec} "cd ${daemon_dir} ; pwd ; ${daemon} ${daemon_flags}"
}
{% endif %}


rc_cmd $1
remember that computers suck.