[Windows] How to restart node via command line

Does anyone know how to restart a node from the command line? I had to restart my PC and just realized I have no idea how to do this. I tried ‘storagenode.exe run’ but it says incorrect configuration.

I really don’t want to uninstall and reinstall again.

Stop-Service storagenode
Start-Service storagenode

cmd command

https://documentation.storj.io/resources/faq/system-maintenance

2 Likes

Task manager, tab services, storagenode, right click, start

Stop-Service storagenode and Start-Service storagenode
is a PowerShell commands

For ordinary windows command line (CMD or via .BAT files) it should be:
to start node itself and autoupdater service:

sc start storagenode
sc start storagenode-updater

to stop:

sc stop storagenode
sc stop storagenode-updater

Need Administrator rights to work in both cases.

2 Likes