我用的是Debian testing,开FTP用的是Proftpd. 现在觉得ftp影响了我的桌面的性能,想把它的nice值设置低。
查看/etc/init.d/proftpd 发现是用start-stop-daemon 启动Proftpd的。$ man start-stop-daemon .找到
-N|--nicelevel int
This alters the prority of the process before starting it.
于是修改/etc/init.d/proftpd文件,
start()
{
if start-stop-daemon -N 18 --start --quiet --pidfile "$PIDFILE" \
--exec $DAEMON -- $OPTIONS ; then
echo "$NAME."
else
echo "."
fi
}
, 搞定:)

Leave a comment