重启群晖Driver服务

最近偶尔遇到群晖中的 Driver 无响应,无法查看文件的情况,平时采用重启群晖机器来解决,最近一想,是否有重启服务的方式。

经过查询,发现从 DSM 7 版本后,群晖服务改用了 systemctl 的方式,经常用Linux环境的一定对这个非常熟悉。

1
2
3
4
5
6
7
8
# Start, Restart, Stop services
systemctl start [servicename]
systemctl restart [servicename]
systemctl stop [servicename]
# Show current status of the service
systemctl status [servicename]
# e.g. Restart nginx web server
systemctl restart nginx

通过查看系统服务状态,找到是 pkgctl-SynologyDrive.service 服务,执行重启命令:

1
sudo systemctl restart pkgctl-SynologyDrive.service

再次查看 Driver 已经可以正常使用了。

Reference
How to Use command/Manually restart/start/stop services in Synology DSM 7 and newer versions