Skip to content

Latest commit

 

History

History
90 lines (59 loc) · 1.56 KB

File metadata and controls

90 lines (59 loc) · 1.56 KB

Telemersive Manager

manager contains the telemersive-manager

Installation

Important for the installation is that first the broker is installed and second the manager.

Installs the manager together with NPM if it is not installed already.

cd manager
./manager-service-install.sh

Configuration

Change Credentials

cd manager

Copy access.js.template to access.js and adjust credentials:

module.exports.broker_url = 'telemersive.zhdk.ch';
module.exports.broker_port = 3883;
module.exports.switch_port = 3591;
module.exports.user = 'manager';
module.exports.pwd = 'manager';

Update

To update please first stop the service to not break the running service and later start it again.

To update to a newer version change to the manager directory and update the npm project:

git pull
cd manager
npm install

Usage

To run the manager without the service use the following script:

./manager/manager-run.sh

Service

# start service
sudo systemctl start telemersive-manager.service

# stop service
sudo systemctl stop telemersive-manager.service

# restart service
sudo systemctl restart telemersive-manager.service

# enable service (auto-start on restart)
sudo systemctl enable telemersive-manager.service

# disbale service
sudo systemctl disable telemersive-manager.service

# show status
sudo systemctl status telemersive-manager.service

Uninstall

sudo ./manager/manager-service-uninstall.sh

Credits

Main contribution:

  • Martin Fröhlich

Scripts:

  • Florian Bruggisser