struCoder / pmgo

pmgo is a process manager for Golang applications.
MIT License
625 stars 65 forks source link

Fixed: fix InitMaster use custom config name's Bug. #64

Closed hysios closed 3 years ago

hysios commented 3 years ago

when i used the great project 'pmgo' in custom process management of our system, we found used master.StartRemoteMasterServer(dsn, configFile) method use custom filename are always same filename config.toml in the current path, and we can't define 'SysFolder' at variable in another path, because master.saveProcsWrapper will create a config file in SysFolder, this is confused in multiple config filename as multi confgiure. like below

├── run
|   ├-- config.toml # <-- here  duplicate config
|   |
│   └── python
│       ├── python.err
│       ├── python.out
│       └── python.pid
├── config.toml <-- here

cat config.toml

SysFolder = "./run/"
PidFile = ""
OutFile = ""
ErrFile = ""
struCoder commented 3 years ago

@hysios Thanks for your PR.

CR. wait

struCoder commented 3 years ago

@hysios that's actually bug. Thanks :)