winService

command module
v0.0.0-...-5833044 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 14 Imported by: 0

README

winService

Run any Go executable file as a windows service

  • There are two options on how to create windows services

Option A ( Everthing on SoureCode)

  • Compile your program go build . then place compiled program on the same folder/directory with your go lang program.
  • Open command line as administrator
  • Run winservice.exe -service install

Option B (Using json file for configuration)

  • Copy everything from withEnv.md and replace on main.go
  • Modify config file json
  • Compile your program go build . then place it on the same directory with your config file json
  • Your actual program can be on any directory but specify on config file
  • Open command line as administrator
  • Run winservice.exe -service install

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL