You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
680 B
30 lines
680 B
// site-service.js
|
|
// Copyright (C) 2021 Digital Telepresence, LLC
|
|
// License: Apache-2.0
|
|
|
|
'use strict';
|
|
|
|
const path = require('path');
|
|
|
|
const { SiteCommon } = require(path.join(__dirname, 'site-common'));
|
|
const { SiteLog } = require(path.join(__dirname, 'site-log'));
|
|
|
|
class SiteService extends SiteCommon {
|
|
|
|
constructor (dtp, definition) {
|
|
super(dtp);
|
|
this.slug = definition.slug;
|
|
this.name = definition.name;
|
|
this.log = new SiteLog(dtp, `svc:${this.slug}`);
|
|
}
|
|
|
|
async start ( ) {
|
|
this.log.info(`starting ${this.name} service`);
|
|
}
|
|
|
|
async stop ( ) {
|
|
this.log.info(`stopping ${this.name} service`);
|
|
}
|
|
}
|
|
|
|
module.exports.SiteService = SiteService;
|