实测,所有版本都有效!硬盘休眠方法!
本帖最后由 ffwood 于 2020-2-21 00:24 编辑只在启动脚本里增加一句话:
1. ssh连接群晖,执行命令:
sudo vi /etc/init/syslog-ng.conf2.定位到 fi这里,a进入修改模式,增加下面一句,esc进命令模式,:wq!保存退出:
mount -o bind /dev/null /var/log/scemd.log || true
改完如下图:
如果有效果请回帖说一声!
6.1.7 也可以吗?跟你说的有点不一样?
admin@NAS-Asker:/$ sudo vi /etc/init/syslog-ng.conf
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.
Password:
author "Development Infrastructure Team"
description "start syslog-ng"
start on stopped hostname
oom score -999
respawn
respawn limit 5 10
console log
pre-start script
# check /dev/log is a domain socket file
# prevent error='Address already in use (98)'
if [ ! -S /dev/log ]; then
rm -f /dev/log
fi
mkdir -p /etc/syslog-ng/patterndb.d
cp -rf /etc.defaults/syslog-ng/patterndb.d /etc/syslog-ng
if [ ! -f /etc/syslog-ng/syslog-ng.conf ]; then
cp -f /etc.defaults/syslog-ng/syslog-ng.conf /etc/syslog-ng
fi
mkdir -p /etc/logrotate.d || true
mkdir -p /etc/syslog-ng/patterndb.d/include/not2msg || true
mkdir -p /etc/syslog-ng/patterndb.d/include/not2kern || true
/bin/mkdir -p /run/syslog-ng || true
chown -R system:log /run/syslog-ng || true
chown -R system:log /etc/syslog-ng || true #XXX: why /etc/syslog-ng/ is 744 not 755 !?
mkdir -p /usr/local/etc/logrotate.d || true
mkdir -p /usr/local/etc/syslog-ng/patterndb.d/synolog || true
mkdir -p /usr/local/etc/syslog-ng/patterndb.d/include/not2msg || true
mkdir -p /usr/local/etc/syslog-ng/patterndb.d/include/not2kern || true
if [ -f /var/packages/LogCenter/enabled ]; then
. /var/packages/LogCenter/scripts/pkg_utils
MoveOperationLogToPkg || true
fi
echo "Starting syslog-ng"
end script
script
"/etc/init/syslog-ng.conf" 59L, 1728C 21,3 当然可以,一样的 楼主,这样就不会每隔一个小时唤醒一次了? zijian 发表于 2020-2-21 15:28
楼主,这样就不会每隔一个小时唤醒一次了?
解决不了,这个解决一直不休眠。 马克一下,看看有同学用下来有没有反馈 6.2.1无效
马克一下,看看有同学用下来有没有反馈 6.2.1 918+ 无效 楼主,可以确认的是哪些版本有效? 是回避写log造成的休眠失败么? 3615 6.2.3 修改后可以休眠,但是群晖休眠不好用,经常唤醒,还是不用休眠了。{:7_206:} 3617xs DSM6.23不能用 试试看,这样可以省电 本帖最后由 mxj666 于 2022-5-11 16:09 编辑
最新的DS3622xs+ 7.1.0 42661 不知道怎么样,试一下
没有syslog-ng.conf这个文件
7.1.0这个文件在/etc/syslog-ng/目录下,打开里面没有fi怎么办,里面内容是这样的
@version: 3.34
@define allow-config-dups 1
options {
stats_freq (0);
ts_format(iso);
flush_lines (0);
time_reopen (10);
log_fifo_size (4096);
chain_hostnames (off);
use_dns (yes);
use_fqdn (yes);
create_dirs (yes);
owner ("system");
group ("log");
perm (0660);
dir_owner ("system");
dir_group ("log");
dir_perm (0750);
keep_hostname (yes);
mark_mode(none);
mark_freq(0);
suppress(30);
};
source src {
systemd-journal(prefix(".SDATA.journald."));
internal();
};
@include "/etc/syslog-ng/patterndb.d/"
@include "/usr/local/etc/syslog-ng/patterndb.d/"
想知道最新7.1 怎么设置
页:
[1]