镜像自地址
https://github.com/tuna/tunasync.git
已同步 2025-12-06 14:36:47 +00:00
feature(worker): limit rsync memory using cgroup
这个提交包含在:
@@ -6,10 +6,10 @@ After=network.target
|
||||
Type=simple
|
||||
User=tunasync
|
||||
PermissionsStartOnly=true
|
||||
ExecStartPre=/usr/bin/cgcreate -t tunasync -a tunasync -g cpu:tunasync
|
||||
ExecStartPre=/usr/bin/cgcreate -t tunasync -a tunasync -g memory:tunasync
|
||||
ExecStart=/home/bin/tunasync worker -c /etc/tunasync/worker.conf --with-systemd
|
||||
ExecReload=/bin/kill -SIGHUP $MAINPID
|
||||
ExecStopPost=/usr/bin/cgdelete cpu:tunasync
|
||||
ExecStopPost=/usr/bin/cgdelete memory:tunasync
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
在新工单中引用
屏蔽一个用户