mindoc-org / mindoc-daemon

daemon for mindoc

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

daemon for mindoc

License:MIT License


Languages

Language:Go 96.0%Language:Batchfile 4.0%