How do you delete orphaned server services?
# box-products
d
How do you delete orphaned server services?
b
Explain?
d
I'm using the Ortus Service Manager and I have several windows services that are no longer in use. I have
server service remove name='somename'
but it doesn't find it.
b
Well, the
name
param is the name of a CommandBox server.
I assume you'd want to use
serviceName
nevermind, I guess that's only on the create command
Usually you'd want to remove the related service before blowing away the server 🙂
But you should be able to do it if you create a temp server.json with the server.serverName in it and then run the remove in that directory so it can find the service
Though, I actually would have expected the name to work UNLESS you actually have a CommandBox server somewhere with that name.
When I run
Copy code
server service remove foobar
it actually looks for a WIndows service with that name since the
serviceName
defaults to the same as the CommandBox server name
@Daniel Mejia
d
yeah. I don't know the name I used before.
b
Then how do you know the service exists, lol
I assume you are looking at in in the WIndows Services viewer
But then you'd know the name because it's right there
d
lol. yeah but using that name didn't work.
I was able to remove them by guessing the names.
b
You're gonna need to clarify what "didn't work" means, lol
You may be confusing the display name for the actual service name
double click on the service and look at the actual "service name" in the popup
d
perfect
double click to see actual name
thank you