diff --git a/src/services.js b/src/services.js index 7112937d4..eff607822 100644 --- a/src/services.js +++ b/src/services.js @@ -1643,7 +1643,7 @@ async function startGraphite(existingInfra, serviceConfig) { await shell.promises.exec('startGraphite', cmd); // restart collectd to get the disk stats after graphite starts. currently, there is no way to do graphite health check - setTimeout(async () => await safe(shell.sudo('restartcollectd', [ RESTART_SERVICE_CMD, 'collectd' ], {})), 60000); + setTimeout(async () => await safe(shell.promises.sudo('restartcollectd', [ RESTART_SERVICE_CMD, 'collectd' ], {})), 60000); } async function setupProxyAuth(app, options) {