stopping or uninstalling universal search on dsm 7
2021-01-07
Quick post to keep note of something useful. Hope it helps you as well in case you look for it. I used to stop services on my Synology using either the synoservicecfg
command, the synoservicectl
command, or the synoservice
one. I never understood which one was the correct one.
It seems that Synology has removed all these commands with the upcoming DSM7, now in beta.
The new command to use is synopkg
(/usr/syno/bin/synopkg
). And here I show how to use it for stopping and/or removing Universal Search (DSM feature to index your content for quick search.).
Stop a service with synopkg stop <package_name>
. The <package_name>
for Universal Search is SynoFinder
1.
/usr/syno/bin/synopkg stop SynoFinder
{"action":"prepare","error":{"code":0},"stage":"prepare","success":true}
Make this change permanent by creating a startup task.
Open the DSM from your browser. Open the Control Panel
. Seach for, or click on, Task Scheduler
: Create -> Triggered Task -> User-defined Script.
Under General
:
- Pick a name for your task
- Select your admin user
- “Event” should be “Boot-up”
- “Pre-task” should be empty
- “Enabled” should be checked.
Under Task settings
:
- “Run command”, insert
usr/syno/bin/synopkg stop SynoFinder
.
Check the service status with synopkg status <package_name>
. Here I report the expected output:
/usr/syno/bin/synopkg status SynoFinder
SynoFinder package is stopped
Status: [1]
Uninstall a service completely with synopkg uninstall <package_name>
.
/usr/syno/bin/synopkg uninstall SynoFinder
{"action":"prepare","error":{"code":0},"stage":"prepare","success":true}
Check that the removal was successful with synopkg status <package_name>
. Here I report the expected output:
/usr/syno/bin/synopkg status SynoFinder
No such package SynoFinder
Status: [255]
Find a list of all installed services with /usr/syno/bin/synopkg list
and use the package name without the -version
part.
To start the service again, use /usr/syno/bin/synopkg start SynoFinder
and, if any, remove the startup script.
To reinstall the service, Search for “Universal Finder” in the DSM Package Manager. You will be able to install it from there.
-
For this, and for all successive code snippets, the first line is the input command and all successive lines are what the command should output. ↩
I do not use a commenting system anymore, but I would be glad to read your feedback. Feel free to contact me.