Add sleep to shutting down jails.
This commit is contained in:
parent
ab572079ac
commit
f6152d92f1
@ -1,7 +1,7 @@
|
|||||||
(setq gc-cons-threshold (* 128 1024 1024)) ;; Increase garbage collection threshold for performance (default 800000)
|
(setq gc-cons-threshold (* 128 1024 1024)) ;; 128MiB Increase garbage collection threshold for performance (default 800000)
|
||||||
;; Increase amount of data read from processes, default 4k
|
;; Increase amount of data read from processes, default 4k
|
||||||
(when (version<= "27.0" emacs-version)
|
(when (version<= "27.0" emacs-version)
|
||||||
(setq read-process-output-max (* 1024 1024)) ;; 1mb
|
(setq read-process-output-max (* 10 1024 1024)) ;; 10MiB
|
||||||
)
|
)
|
||||||
|
|
||||||
;; Suppress warnings
|
;; Suppress warnings
|
||||||
|
@ -2,7 +2,7 @@ admin_git {
|
|||||||
path = "/jail/${name}";
|
path = "/jail/${name}";
|
||||||
vnet;
|
vnet;
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
devfs_ruleset = 14;
|
devfs_ruleset = 14;
|
||||||
|
@ -2,7 +2,7 @@ bastion {
|
|||||||
path = "/jail/${name}";
|
path = "/jail/${name}";
|
||||||
vnet;
|
vnet;
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
devfs_ruleset = 14;
|
devfs_ruleset = 14;
|
||||||
|
@ -2,7 +2,7 @@ certificate {
|
|||||||
path = "/jail/${name}";
|
path = "/jail/${name}";
|
||||||
vnet;
|
vnet;
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
devfs_ruleset = 14;
|
devfs_ruleset = 14;
|
||||||
|
@ -4,8 +4,8 @@ cloak {
|
|||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start restricted_nat jail${name} 10.215.2.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start restricted_nat jail${name} 10.215.2.1/24";
|
||||||
# Create a dummy interface that is never used, just to create the cloak bridge that is used by children.
|
# Create a dummy interface that is never used, just to create the cloak bridge that is used by children.
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start cloak dummy${name} 192.168.1.0/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start cloak dummy${name} 192.168.1.0/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop cloak dummy{name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop cloak dummy{name}";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop restricted_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop restricted_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
vnet.interface += "cloak";
|
vnet.interface += "cloak";
|
||||||
|
|
||||||
|
@ -4,7 +4,7 @@ dagger {
|
|||||||
vnet.interface += "dagger";
|
vnet.interface += "dagger";
|
||||||
|
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start cloak ${name} 192.168.1.0/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start cloak ${name} 192.168.1.0/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop cloak ${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop cloak ${name}";
|
||||||
|
|
||||||
mount.fstab = "/etc/fstab.${name}";
|
mount.fstab = "/etc/fstab.${name}";
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ nat_dhcp {
|
|||||||
path = "/jail/${name}";
|
path = "/jail/${name}";
|
||||||
vnet;
|
vnet;
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
devfs_ruleset = 14;
|
devfs_ruleset = 14;
|
||||||
|
@ -4,7 +4,7 @@ olddagger {
|
|||||||
vnet.interface += "olddagger";
|
vnet.interface += "olddagger";
|
||||||
|
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start cloak ${name} 192.168.1.0/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start cloak ${name} 192.168.1.0/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop cloak ${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop cloak ${name}";
|
||||||
|
|
||||||
mount.fstab = "/etc/fstab.${name}";
|
mount.fstab = "/etc/fstab.${name}";
|
||||||
|
|
||||||
|
@ -2,7 +2,7 @@ public_dns {
|
|||||||
path = "/jail/${name}";
|
path = "/jail/${name}";
|
||||||
vnet;
|
vnet;
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
devfs_ruleset = 14;
|
devfs_ruleset = 14;
|
||||||
|
@ -2,7 +2,7 @@ sample {
|
|||||||
path = "/jail/${name}";
|
path = "/jail/${name}";
|
||||||
vnet;
|
vnet;
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
devfs_ruleset = 14;
|
devfs_ruleset = 14;
|
||||||
|
@ -2,7 +2,7 @@ sftp {
|
|||||||
path = "/jail/${name}";
|
path = "/jail/${name}";
|
||||||
vnet;
|
vnet;
|
||||||
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
exec.prestart += "/usr/local/bin/jail_netgraph_bridge start jail_nat jail${name} 10.215.1.1/24";
|
||||||
exec.poststop += "/usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
exec.poststop += "sleep 10; /usr/local/bin/jail_netgraph_bridge stop jail_nat jail${name}";
|
||||||
vnet.interface += "jail${name}";
|
vnet.interface += "jail${name}";
|
||||||
|
|
||||||
devfs_ruleset = 14;
|
devfs_ruleset = 14;
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# REQUIRE: FILESYSTEMS kld
|
|
||||||
# PROVIDE: mediamtx
|
# PROVIDE: mediamtx
|
||||||
# BEFORE: netif
|
# REQUIRE: LOGIN opnsense
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
name=mediamtx
|
name=mediamtx
|
||||||
rcvar=${name}_enable
|
rcvar=${name}_enable
|
||||||
start_cmd="${name}_start"
|
start_cmd="${name}_start"
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# REQUIRE: FILESYSTEMS kld
|
|
||||||
# PROVIDE: opnsense
|
# PROVIDE: opnsense
|
||||||
# BEFORE: netif
|
# REQUIRE: LOGIN
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
name=opnsense
|
name=opnsense
|
||||||
rcvar=${name}_enable
|
rcvar=${name}_enable
|
||||||
start_cmd="${name}_start"
|
start_cmd="${name}_start"
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
#
|
#
|
||||||
# REQUIRE: FILESYSTEMS kld
|
|
||||||
# PROVIDE: unifi
|
# PROVIDE: unifi
|
||||||
# BEFORE: netif
|
# REQUIRE: LOGIN opnsense
|
||||||
|
# KEYWORD: shutdown
|
||||||
|
|
||||||
. /etc/rc.subr
|
. /etc/rc.subr
|
||||||
|
|
||||||
name=unifi
|
name=unifi
|
||||||
rcvar=${name}_enable
|
rcvar=${name}_enable
|
||||||
start_cmd="${name}_start"
|
start_cmd="${name}_start"
|
||||||
|
Loading…
Reference in New Issue
Block a user