LinuxCommandLibrary

synoservice

TLDR

List all services

$ synoservicecfg --list
copy
Check service status
$ synoservice --status [servicename]
copy
Start a service
$ synoservicecfg --start [servicename]
copy
Stop a service
$ synoservicecfg --stop [servicename]
copy
Force stop a service
$ synoservicecfg --hard-stop [servicename]
copy
Restart a service
$ synoservice --restart [servicename]
copy
Restart a package service
$ synoservicectl --restart [pkgctl-WebStation]
copy

SYNOPSIS

synoservice {--status|--restart} [service]
synoservicecfg {--start|--stop|--hard-start|--hard-stop|--list} [service]
synoservicectl {--start|--stop|--restart|--status} [service]

DESCRIPTION

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.

PARAMETERS

--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.

CAVEATS

Requires SSH access and root privileges (use sudo -i). Commands may differ slightly between DSM versions. Package services use the pkgctl- prefix. Some critical services should not be stopped remotely. On DSM 7+, consider using systemctl as an alternative.

HISTORY

synoservice utilities are Synology-proprietary tools developed for their DiskStation Manager operating system. They provide a consistent interface for managing services across different DSM versions and hardware platforms. DSM 7 introduced better systemd integration alongside these legacy tools.

SEE ALSO

Copied to clipboard