Changeset View
Changeset View
Standalone View
Standalone View
head/etc/rc.d/ipfs
#!/bin/sh | #!/bin/sh | ||||
# | # | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
# | # | ||||
# PROVIDE: ipfs | # PROVIDE: ipfs | ||||
# REQUIRE: ipnat | # REQUIRE: ipnat | ||||
# KEYWORD: nojail shutdown | # KEYWORD: nojail shutdown | ||||
. /etc/rc.subr | . /etc/rc.subr | ||||
name="ipfs" | name="ipfs" | ||||
desc="Saves and restores information for NAT and state tables" | |||||
rcvar="ipfs_enable" | rcvar="ipfs_enable" | ||||
start_cmd="ipfs_start" | start_cmd="ipfs_start" | ||||
stop_cmd="ipfs_stop" | stop_cmd="ipfs_stop" | ||||
start_precmd="ipfs_prestart" | start_precmd="ipfs_prestart" | ||||
ipfs_prestart() | ipfs_prestart() | ||||
{ | { | ||||
# Do not continue if either ipnat or ipfilter is not enabled or | # Do not continue if either ipnat or ipfilter is not enabled or | ||||
Show All 31 Lines |