aboutsummaryrefslogblamecommitdiffstats
path: root/roles/rc/templates/rc_freebsd.j2
blob: 0c4f86f423d670b3fbbac4df66d588b3fe7741d2 (plain) (tree)
1
2
3
4
5
6
7
8
         


                    
                    
 
              
 











                                      
#!/bin/sh
#
# managed by Ansible

# PROVIDE: wireguard

. /etc/rc.subr

name="{{ rc_name | lower }}"
rcvar="${name}_enable"

start_cmd="{{ rc_cmd }} {{ rc_args }}"

{{ rc_name | lower }}_start()
{
	echo "Staring ${name} ..."
	$(start_cmd)
}

load_rc_config $name
remember that computers suck.