Skip to content

Remote Mode: Adapter doesn't restart when its config changes #555

@UncleSamSwiss

Description

@UncleSamSwiss

Currently the following code is missing from https://github.com/ioBroker/dev-server/blob/main/src/commands/WatchRemote.ts

        if (!this.isJSController()) {
            this.socketEvents.on('objectChange', (args: any) => {
                if (Array.isArray(args) && args.length > 1 && args[0] === `system.adapter.${this.adapterName}.0`) {
                    this.log.notice('Adapter configuration changed, restarting nodemon...');
                    nodemon.restart();
                }
            });
        }

The solution is not straight forward as we need to either send input rs to the remote nodemon or signal the process with SIGUSR2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions