https://tech.setepontos.com/2018/03/25/control-synology-dsm-services-via-terminal-ssh/
There are some occasions where controlling your Synology’s services via the command line is just necessary. Here are the main commands for doing this and the package list for some of the most used DSM apps.
Note that you need elevated permissions to issue these commands, use sudo -i
for simplicity.
General Command Line commands for handling DSM Services:
synoservicecfg --list
synoservice --status
synoservicecfg --stop <service>
synoservicecfg --hard-stop <service>
synoservicecfg --start <service>
synoservicecfg --hard-start <service>
synoservice --restart <service>
synoservicectl --restart <service>
For example, this will restart WebStation altogether:Advertisement
synoservice --restart pkgctl-WebStation
or Docker:
synoservice --restart pkgctl-Docker
DSM Services & Package Services:
DSM apparmor atalk avahi bluetoothd bonjour btacd crond cups-lpd cupsd dbus dc-output ddns findhost ftpd ftpd-ssl gcpd heartbeat hotplugd iscsitrg ldap-server miniupnpd-handler natpmpd nfsd nginx nmbd nslcd ntpd-client ntpd-server pgsql pkgctl-Apache2.4 pkgctl-AudioStation pkgctl-CMS pkgctl-CloudSync pkgctl-DNSServer pkgctl-Docker pkgctl-DownloadStation pkgctl-FileStation pkgctl-Git pkgctl-HyperBackup pkgctl-Java8 pkgctl-LogCenter pkgctl-MariaDB pkgctl-MariaDB10 pkgctl-Node.js_v4 pkgctl-PEAR pkgctl-PHP5.6 pkgctl-PHP7.0 pkgctl-Plex Media Server pkgctl-StorageAnalyzer pkgctl-TextEditor pkgctl-VPNCenter pkgctl-WebStation pkgctl-adminer pkgctl-domoticz pkgctl-filebot pkgctl-filebot-node pkgctl-git pkgctl-python pkgctl-sickrage pppoerelay rsyncd s2s_daemon samba scemd sftp snmp ssdp ssh-shell support-remote-access synoagentregisterd synobackupd synocacheclient synocachepinfiletool synocgid synoconfd synocontentextractd synocrond synogpoclient synoindexd synologrotate synomkflvd synomkthumbd synomount synoovs-db synoovs-vswitch synoperfeventd synorelayd synosnmpcd synostoraged synotifyd synotunnel synovpnclient synowifid syslog-acc syslog-ng syslog-notify system telnetd tftp upnpd ups-net ups-usb usbipd winbindd