server: show worker mode in process name
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
All checks were successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful
Changelog: Added
This commit is contained in:
parent
00332ed37f
commit
742fa37e2b
1 changed files with 7 additions and 1 deletions
|
@ -18,7 +18,13 @@ const ev = new Xev();
|
|||
* Init process
|
||||
*/
|
||||
export async function boot(): Promise<void> {
|
||||
process.title = `FoundKey (${cluster.isPrimary ? 'master' : 'worker'})`;
|
||||
if (envOption.disableClustering) {
|
||||
process.title = "Foundkey";
|
||||
} else if (cluster.isPrimary) {
|
||||
process.title = "Foundkey (master)";
|
||||
} else if (cluster.isWorker) {
|
||||
process.title = `Foundkey (${process.env.mode})`;
|
||||
}
|
||||
|
||||
if (cluster.isPrimary || envOption.disableClustering) {
|
||||
await masterMain();
|
||||
|
|
Loading…
Reference in a new issue