+ RemoveOldHistoryScheduler.Instance.enable()
+ RemoveOldViewsScheduler.Instance.enable()
+ PluginsCheckScheduler.Instance.enable()
+ PeerTubeVersionCheckScheduler.Instance.enable()
+ AutoFollowIndexInstances.Instance.enable()
+ RemoveDanglingResumableUploadsScheduler.Instance.enable()
+ VideoChannelSyncLatestScheduler.Instance.enable()
+ VideoViewsBufferScheduler.Instance.enable()
+ GeoIPUpdateScheduler.Instance.enable()
+ OpenTelemetryMetrics.Instance.registerMetrics()
+
+ PluginManager.Instance.init(server)
+ // Before PeerTubeSocket init
+ PluginManager.Instance.registerWebSocketRouter()
+
+ PeerTubeSocket.Instance.init(server)
+ VideoViewsManager.Instance.init()
+
+ updateStreamingPlaylistsInfohashesIfNeeded()
+ .catch(err => logger.error('Cannot update streaming playlist infohashes.', { err }))
+
+ LiveManager.Instance.init()
+ if (CONFIG.LIVE.ENABLED) await LiveManager.Instance.run()