mirror of
https://github.com/kenzok8/small-package
synced 2025-01-09 04:37:59 +08:00
update 2024-09-28 20:34:39
This commit is contained in:
parent
1dff89fb6d
commit
16a15ee08a
@ -236,6 +236,9 @@ start_service() {
|
||||
procd_set_param user "$MIHOMO_USER"
|
||||
procd_set_param group "$MIHOMO_GROUP"
|
||||
|
||||
procd_set_param limits core="unlimited"
|
||||
procd_set_param limits nofile="1048576 1048576"
|
||||
|
||||
procd_add_jail mihomo requirejail procfs
|
||||
procd_add_jail_mount "$PROG" /etc/TZ /etc/localtime /etc/hosts /etc/ssl/certs
|
||||
procd_add_jail_mount_rw "$RUN_DIR" /dev/net
|
||||
|
Loading…
Reference in New Issue
Block a user