Install writes a fully commented sample env file when no config exists
This commit is contained in:
@@ -186,13 +186,14 @@ By default install creates the canonical layout and copies the binary into
|
||||
it (Windows: `%ProgramFiles%\gpu-turnstile\`, plus
|
||||
`%ProgramData%\gpu-turnstile\` for logs; Linux: `/var/lib/gpu-turnstile/`
|
||||
with the config at `/etc/gpu-turnstile.env`). An existing config in the
|
||||
target location is never overwritten. On Windows the install also makes
|
||||
sure the env file sets `LOG_FILE` to
|
||||
`%ProgramData%\gpu-turnstile\gpu-turnstile.log` (appended only when no
|
||||
`LOG_FILE=` line exists) since a service has no console; on Linux logs go
|
||||
to the journal via stderr, so no default is set there. `--no-copy`
|
||||
registers the current executable location as-is and leaves the config
|
||||
untouched.
|
||||
target location is never overwritten. If there is no config at all, install
|
||||
writes a sample env file covering every setting — each with a comment line,
|
||||
everything commented out — except `LOG_FILE`, which is active on Windows
|
||||
(`%ProgramData%\gpu-turnstile\gpu-turnstile.log`) since a service has no
|
||||
console; on Linux it stays commented because stderr goes to the journal.
|
||||
An existing config without `LOG_FILE` gets that line appended on Windows.
|
||||
`--no-copy` registers the current executable location as-is and leaves the
|
||||
config untouched.
|
||||
|
||||
### Windows
|
||||
|
||||
|
||||
Reference in New Issue
Block a user