1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#!/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