|
|
发表于 2020-3-7 13:57:17
|
显示全部楼层
紫萱紫萱 发表于 2020-3-6 22:05
9 A' M+ U2 t% {, h+ B120j测试
8 `) m5 k4 m- j3 t1 |7 {改为
* _9 G2 g7 ^$ t9 V8 k8 n) n' ?6 j$ ismartctl -a /dev/hda -d ata | sed -n '/Temperature_Celsius/p' | awk '{print $10}'
8 k' J1 P4 M2 x3 A& r" K2 ^* p层主,你120J是用什么办法休眠的?我按照http://bbs.nasdiyer.com/forum.ph ... =%E4%BC%91%E7%9C%A0在SSH里面找不到他图片上的内容
' Z" P0 H* v1 A/ p: Klogin as: admin
! N4 s0 m( q& l" Z: D% I4 t' j7 z. \[email protected]'s password:7 i9 u0 B# g m! P" v
admin@DS120J:~$ sudo vi /etc/init/syslog-ng.conf+ x; J2 f. h. h( [
Password:' i& T7 |( G4 B
author "Development Infrastructure Team"
" r6 E/ q0 p6 z! `( k( d/ Cdescription "start syslog-ng"
! S" g0 a( ]9 _0 Y+ H2 G0 d
9 M8 ]( F" J1 N. E5 W0 S2 cstart on stopped hostname+ ]8 u7 N2 r4 v: Y+ a
, P4 ^" R$ h+ t d$ foom score -9999 S: H. W6 o8 ~( P4 }
' X/ t# a V2 i- w# y* wrespawn2 t, g, h; I- x8 A1 G! U
respawn limit 5 10! a# K8 F0 a3 a( S
4 d& q% r$ F) {3 L+ l
console log* I" I3 E& S* @. r% A4 U
& U! T b5 F2 H6 ]9 F Q epre-start script
9 F, Y) x' b1 R" U+ |: [3 O # skip pre-start for synoservice --reload syslog-ng( m' v/ ^) c+ `# o( H
if ! /bin/flock -n /var/run/syslog-ng.lock true; then0 k6 h2 k7 g, F; P" J* D
exit 0
/ j/ f( V1 |. b1 Z- d+ q fi
$ J z/ h# f5 p' D* U+ [! L" \( y
# check /dev/log is a domain socket file$ }) g2 T- Q3 Z: I
# prevent error='Address already in use (98)'
, W$ b* p( h- `+ ] if [ ! -S /dev/log ]; then( V7 Y6 ~0 L- _
rm -f /dev/log: s, o# }. j" |7 s3 Y" z3 ]
fi% j4 o" K6 M, ]& R) J
"/etc/init/syslog-ng.conf" 78L, 2216C 1,1 Top
9 X2 [7 ]3 ?8 F; q7 O不知道该在哪里添加 |
|