storj/cmd
Márton Elek 56dbe7738d cmd/storagenode: use the right subcommand for restarting windows services
Commit 3cf89633e9 is changed how the cobra subcommands are created for storagenode (with prefering local variables instead of package level variables).

However, there is a bug which makes it impossible to restart Storagenode services on Windows: the refactored code creates the rootCmd/runCmd twice: therefore the ctx of the running process is not exactly the same as the ctx which supposed to be stopped / cancelled.

This patch fixes this problem with re-using exising, initialized command instead of creating a new one for cancellation.

Fixes: https://github.com/storj/storj/issues/5845

Change-Id: Ib8a4b80d4574e448f65c8558e927c0908c9c5eed
2023-05-08 14:09:37 +00:00
..
certificates certificate/authorization,cmd/certificates: remove gob code 2023-02-08 15:05:40 +00:00
crashcollect crashcollect: process for receiving panics 2021-04-27 18:57:47 +03:00
identity all: fix deprecated ioutil commands 2022-10-11 15:27:29 +00:00
inspector cmd/inspector: move command back from cmd/tools/ 2022-09-07 09:35:12 +00:00
internal/wizard cmd/internal/asset: delete unused code 2021-05-20 18:30:19 +03:00
metric-receiver cmd/metric-receiver: restore minimal metrics server 2020-10-14 20:01:29 +03:00
multinode cmd/multinode: Removes dependency on deprecated identity-dir flag, code and documentation. (#5646) 2023-03-08 13:56:15 +01:00
satellite satellite/main,stripe/{client,service}: stripe balance invoice item cmd 2023-04-25 21:08:23 +00:00
storagenode cmd/storagenode: use the right subcommand for restarting windows services 2023-05-08 14:09:37 +00:00
storagenode-updater cmd/storagenode-updater: restart storagenode after update on BSD unix derivatives 2023-01-11 12:38:26 +00:00
storj-admin all: fix linter complaints 2020-10-13 15:59:01 +03:00
storj-sim cmd/multinode: Removes dependency on deprecated identity-dir flag, code and documentation. (#5646) 2023-03-08 13:56:15 +01:00
tools satellite/console/dbcleanup: create console DB cleanup chore 2023-05-05 19:11:53 +00:00
uplink go.mod: bump vbauerster/mpb/v8 for fixes 2023-04-18 15:53:35 +03:00
versioncontrol Dockerfiles: switch base image from alpine to Debian 2022-04-05 11:40:44 +00:00