# Copyright (c) 2014, Facebook, Inc. All rights reserved. # # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. An additional grant # of patent rights can be found in the PATENTS file in the same directory. # from sparts.tasks.file import DirectoryWatcherTask from sparts.vservice import VService class DevWatcher(DirectoryWatcherTask): INTERVAL = 1.0 PATH = '/dev' DevWatcher.register() if __name__ == '__main__': VService.initFromCLI()
from sparts.vservice import VService from sparts.tasks.thrift import NBServerTask from sparts.tasks.fb303 import FB303ProcessorTask NBServerTask.register() FB303ProcessorTask.register() if __name__ == '__main__': VService.initFromCLI()