Version 1.1.0 - Refactor + Intergration Backend
This commit is contained in:
11
src/utils/Maintenance.js
Normal file
11
src/utils/Maintenance.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const pm2 = require("pm2")
|
||||
const { LogType } = require("loguix")
|
||||
const clog = new LogType("Maintenance")
|
||||
|
||||
function restart(reason) {
|
||||
clog.warn("Redémarrage du serveur Subsonics")
|
||||
clog.warn(`Reason: ${reason}`)
|
||||
pm2.restart("Subsonics")
|
||||
}
|
||||
|
||||
module.exports = {restart}
|
Reference in New Issue
Block a user