Linux command
synoservice 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
List all services
synoservicecfg --list
Check service status
synoservice --status [servicename]
Start a service
synoservicecfg --start [servicename]
Stop a service
synoservicecfg --stop [servicename]
Force stop a service
synoservicecfg --hard-stop [servicename]
Restart a service
synoservice --restart [servicename]
Restart a package service
synoservicectl --restart [pkgctl-WebStation]
说明
synoservice and related commands (synoservicecfg, synoservicectl) are Synology NAS utilities for managing system and package services from the command line via SSH. These commands control DSM (DiskStation Manager) services including web server, Samba file sharing, SSH, FTP, Docker, and third-party packages. They are located in /usr/syno/sbin/ and require root privileges. Common services include DSM, nginx, samba, ssh-shell, nfsd, ftpd, crond, and package services prefixed with pkgctl- such as pkgctl-Docker and pkgctl-WebStation. In DSM 7 and newer, the standard systemctl command can also be used for service management.
参数
- --status
- Display status of specified service.
- --start
- Start the specified service.
- --stop
- Stop the specified service.
- --restart
- Restart the specified service.
- --hard-start
- Force start the service.
- --hard-stop
- Force stop the service.
- --list
- List all available services.
FAQ
What is the synoservice command used for?
synoservice and related commands (synoservicecfg, synoservicectl) are Synology NAS utilities for managing system and package services from the command line via SSH. These commands control DSM (DiskStation Manager) services including web server, Samba file sharing, SSH, FTP, Docker, and third-party packages. They are located in /usr/syno/sbin/ and require root privileges. Common services include DSM, nginx, samba, ssh-shell, nfsd, ftpd, crond, and package services prefixed with pkgctl- such as pkgctl-Docker and pkgctl-WebStation. In DSM 7 and newer, the standard systemctl command can also be used for service management.
How do I run a basic synoservice example?
Run `synoservicecfg --list` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --status do in synoservice?
Display status of specified service.