问题:群晖cloudsync服务经常自动停止
原因:怀疑百度云同步任务太多导致服务故障
解决办法:使用定时任务监控进程并自动重启cloudsync服务
步骤:
1.登陆到群晖查询服务名称,确认百度云同步任务为pkgctl-CloudSync
synoservice –list | grep Cloud
2.测试命令行重启服务,套件中心手动停止服务后使用下列命令启动服务
/usr/syno/sbin/synoservice –restart pkgctl-CloudSync
3.查找进程名发现为 syno-cloud-syncd
ps -ef |grep syno-cloud-syncd
4.撰写脚本如下
#! /bin/sh
proc_name="syno-cloud-syncd" #进程名
proc_num() #查询进程数量
{
num=`ps -ef | grep $proc_name | grep -v grep | wc -l`
return $num
}
proc_num
number=$? #获取进程数量
if [ $number -eq 0 ] #如果进程数量为0
then #重新启动服务器,或者扩展其它内容。
/usr/syno/sbin/synoservice –restart pkgctl-CloudSync
fi
5.保存到autostartcloudsync.sh 在群晖中设置任务计划,每5分钟执行一次
6.附上其他套件名称
synoservice –list
DSM
apparmor
atalk
avahi
bluetoothd
bonjour
btacd
crond
cups-lpd
cupsd
dbus
dc-output
ddns
fileindexd
findhost
ftpd
ftpd-ssl
gcpd
heartbeat
hotplugd
iscsitrg
ldap-server
miniupnpd-handler
natpmpd
nfsd
nginx
nmbd
nslcd
ntpd-client
ntpd-server
pgsql
pkgctl-ActiveBackup
pkgctl-Apache2.2
pkgctl-Chat
pkgctl-CloudStation
pkgctl-CloudStationClient
pkgctl-CloudSync
pkgctl-DNSServer
pkgctl-Docker
pkgctl-DocumentViewer
pkgctl-DownloadStation
pkgctl-HyperBackup
pkgctl-HyperBackupVault
pkgctl-MailServer
pkgctl-MailStation
pkgctl-Node.js_v4
pkgctl-NoteStation
pkgctl-PHP5.6
pkgctl-Perl
pkgctl-ProxyServer
pkgctl-SVN
pkgctl-SynologyApplicationService
pkgctl-TextEditor
pkgctl-WebStation
pkgctl-zerotier
pppoerelay
rsyncd
s2s_daemon
samba
sftp
snmp
ssdp
ssh-shell
support-remote-access
synoagentregisterd
synobackupd
synocacheclient
synocachepinfiletool
synocgid
synoconfd
synocontentextractd
synocontentsearchd
synocrond
synogpoclient
synoindexd
synolog
synologrotate
synomkflvd
synomkthumbd
synomount
synonetd
synoovs-db
synoovs-vswitch
synopacd
synoperfeventd
synorelayd
synosnmpcd
synostoraged
synotifyd
synotunnel
synovfsd
synoclient
synowifid
syslog-acc
syslog-ng
syslog-notify
system
telnetd
tftp
upnpd
ups-net
ups-usb
usbipd
winbindd
原文链接:https://blog.csdn.net/weixin_33850554/article/details/119600502?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522168466843816800222846300%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=168466843816800222846300&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-19-119600502-null-null.blog_rank_default&utm_term=NAS%E3%80%81%E7%BE%A4%E6%99%96%E3%80%81%E9%98%BF%E9%87%8C%E4%BA%91%E3%80%81%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90%E3%80%81%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F%E3%80%81ipv6%E3%80%81ddns%E3%80%81%E8%BD%BB%E9%87%8F%E7%BA%A7%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E3%80%81%E9%93%81%E5%A8%81%E9%A9%AC%E3%80%81%E5%A8%81%E8%81%94%E9%80%9A%E3%80%81DSM%E3%80%81DSM6.0%E3%80%81%E7%BE%A4%E6%99%96nas%E3%80%81%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%E3%80%81%E8%9C%97%E7%89%9B%E6%98%9F%E9%99%85%E3%80%81%E9%BB%91%E7%BE%A4%E6%99%96%E3%80%81docker%E3%80%81%E5%AE%B9%E5%99%A8%E9%95%9C%E5%83%8F%E3%80%81%E5%9F%9F%E5%90%8D%E6%B3%A8%E5%86%8C%E3%80%81%E5%AE%9D%E5%A1%94%E3%80%81%E5%8F%8D%E5%90%91%E4%BB%A3%E7%90%86%E3%80%81nginx%E3%80%81frp%E3%80%81%E5%8A%A8%E6%80%81%E5%9F%9F%E5%90%8D%E8%A7%A3%E6%9E%90