mindoc-daemon

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

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

Go to latest
Published: May 24, 2023 License: MIT Imports: 9 Imported by: 0

README

mindoc-daemon

daemon for mindoc

简体中文

build & run

# build
go build -o mindoc-daemon.exe main.go
# direct run mindoc
mindoc-daemon.exe
# mindoc-daemon service command
mindoc-daemon.exe -service <command>

available commands for mindoc-daemon service

  • install
  • uninstall
  • start
  • stop
  • restart

configuration

the configuration file is mindoc-daemon.json, which must be in the same folder as the mindoc-daemon executable file, and the content is as follows:

{
    "Name": "MinDoc",
    "DisplayName": "MinDoc",
    "Description": "A document online management program.",
    
    "Dir": "E:\\own\\go\\mindoc",
    "Exec": "E:\\own\\go\\mindoc\\mindoc_windows_amd64.exe",
    "Args": [],
    "Env": [
        "MINDOC_RUN_MODE=dev",
        "MINDOC_HIGHLIGHT_STYLE=github"
    ],
    
    "Stderr": "",
    "Stdout": ""
}

the full configuration file example is mindoc-daemon-full.json.example.

explanation of main configuration items:

  • Dir working directory of mindoc, please change it to your self.
  • Exec the full path of the mindoc executable file, please change it to your self.
  • Stderr the full path of error log, or standard error if empty, please change it to your self if you want use file to store log.
  • Stdout the full path of output log, or standard output if empty, please change it to your self if you want use file to store log.

reference

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