[PR #37] [MERGED] feature: Adding service command #2503

Closed
opened 2025-11-20 07:11:16 -05:00 by saavagebueno · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/netbirdio/netbird/pull/37
Author: @mlsmaycon
Created: 6/19/2021
Status: Merged
Merged: 6/27/2021
Merged by: @braginini

Base: mainHead: add-service-command


📝 Commits (10+)

  • 41b50a0 feature: Adding service run command
  • 06c7af0 Create config dir if using default configPath
  • a66cdcc Add service controllers and installers commands
  • 74355a2 fix windows default config path
  • 8088c7a feature: add stop handling for engine
  • a87f828 Adjust service command outputs to use cmd Print functions
  • 5122294 golint: properly handle defer engine stop
  • 52db303 Add service command tests
  • bbfbf79 chore: remove os.Exit - unnecessary call
  • 1a06518 Update resource file with requireAdministrator, added resources.rc and manifests.xml

📊 Changes

15 files changed (+461 additions, -28 deletions)

View changed files

📝 .github/workflows/golang-test.yml (+1 -1)
📝 README.md (+42 -7)
📝 cmd/config.go (+10 -0)
📝 cmd/root.go (+13 -5)
cmd/service.go (+48 -0)
cmd/service_controller.go (+110 -0)
cmd/service_installer.go (+69 -0)
cmd/service_test.go (+131 -0)
📝 cmd/up.go (+6 -1)
📝 go.mod (+1 -2)
📝 go.sum (+3 -11)
📝 iface/iface.go (+1 -1)
manifest.xml (+17 -0)
resources.rc (+9 -0)
📝 resources_windows_amd64.syso (+0 -0)

📄 Description

Adding service command to install, start, stop, uninstall Wiretrustee as a service

Closes #25


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/netbirdio/netbird/pull/37 **Author:** [@mlsmaycon](https://github.com/mlsmaycon) **Created:** 6/19/2021 **Status:** ✅ Merged **Merged:** 6/27/2021 **Merged by:** [@braginini](https://github.com/braginini) **Base:** `main` ← **Head:** `add-service-command` --- ### 📝 Commits (10+) - [`41b50a0`](https://github.com/netbirdio/netbird/commit/41b50a08d4b219526a495c09ed4e5f76a91d6a05) feature: Adding service run command - [`06c7af0`](https://github.com/netbirdio/netbird/commit/06c7af058b63cb2156632cbf70091831826e9d41) Create config dir if using default configPath - [`a66cdcc`](https://github.com/netbirdio/netbird/commit/a66cdccda9c795912823fd35238a62cea72811a8) Add service controllers and installers commands - [`74355a2`](https://github.com/netbirdio/netbird/commit/74355a22924c377dd4f51601c786ce852ca01b94) fix windows default config path - [`8088c7a`](https://github.com/netbirdio/netbird/commit/8088c7a59172a1bfc4e3cab65fb7355cae989947) feature: add stop handling for engine - [`a87f828`](https://github.com/netbirdio/netbird/commit/a87f8288448223225371946c974b3404a69b9a9f) Adjust service command outputs to use cmd Print functions - [`5122294`](https://github.com/netbirdio/netbird/commit/5122294adf1ba3e9957237ecf83448cf34b9bb15) golint: properly handle defer engine stop - [`52db303`](https://github.com/netbirdio/netbird/commit/52db3031044211847b405ac35df9e3e4c719f063) Add service command tests - [`bbfbf79`](https://github.com/netbirdio/netbird/commit/bbfbf797d55df2def24b9c7bab64060c96db04a8) chore: remove os.Exit - unnecessary call - [`1a06518`](https://github.com/netbirdio/netbird/commit/1a06518f1b9d032de7ed68712aa61b0af3dcf0d3) Update resource file with requireAdministrator, added resources.rc and manifests.xml ### 📊 Changes **15 files changed** (+461 additions, -28 deletions) <details> <summary>View changed files</summary> 📝 `.github/workflows/golang-test.yml` (+1 -1) 📝 `README.md` (+42 -7) 📝 `cmd/config.go` (+10 -0) 📝 `cmd/root.go` (+13 -5) ➕ `cmd/service.go` (+48 -0) ➕ `cmd/service_controller.go` (+110 -0) ➕ `cmd/service_installer.go` (+69 -0) ➕ `cmd/service_test.go` (+131 -0) 📝 `cmd/up.go` (+6 -1) 📝 `go.mod` (+1 -2) 📝 `go.sum` (+3 -11) 📝 `iface/iface.go` (+1 -1) ➕ `manifest.xml` (+17 -0) ➕ `resources.rc` (+9 -0) 📝 `resources_windows_amd64.syso` (+0 -0) </details> ### 📄 Description Adding service command to install, start, stop, uninstall Wiretrustee as a service Closes #25 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
saavagebueno added the pull-request label 2025-11-20 07:11:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SVI/netbird#2503