1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/net/gogoc/files/gogoc.in
Bartek Rutkowski 317ce5aa12 net/gogoc: new patch with various improvements
- When shutdown, the correct behavior is to send SIGHUP.
- New patch patch-icmp_echo_engine.c: When PID of the gogoc process greater
  than 65536, it can not perform timeout ping check correctly, due to
  echo_id in icmp_hdr is declared as uint16_t.
- New patch patch-freebsd.sh: To mute dmesg noise "nd6_dad_timer: cancel
  DAD on tun0 because of ND6_IFF_IFDISABLED."
- Don't overwrite gogoc.conf on install.

PR:		211426
Submitted by:	Clive Lin <clive@tongi.org>
Approved by:	maintainer timeout (8 months)
2017-03-23 12:54:46 +00:00

33 lines
612 B
Bash

#!/bin/sh
# PROVIDE: gogoc
# REQUIRE: NETWORK
#
# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
# to enable this service:
#
# gogoc_enable (bool): Set to NO by default.
# Set it to YES to enable gogoc.
#
# Additional configurable variables:
# gogoc_config (path): Set to %%LOCALBASE%%/etc/gogoc.conf
# by default.
. /etc/rc.subr
name="gogoc"
rcvar=gogoc_enable
sig_stop="HUP"
command=%%LOCALBASE%%/bin/${name}
load_rc_config $name
: ${gogoc_enable="NO"}
: ${gogoc_config="%%LOCALBASE%%/etc/gogoc.conf"}
command_args="-f $gogoc_config"
run_rc_command "$1"