Rev 750 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 750 | Rev 751 | ||
|---|---|---|---|
| Line 299... | Line 299... | ||
| 299 | self.cfg = DaemonConfig() |
299 | self.cfg = DaemonConfig() |
| 300 | self.cfg.load() |
300 | self.cfg.load() |
| 301 | 301 | ||
| 302 | # create interface for debugging purpose |
302 | # create interface for debugging purpose |
| 303 | self.cfg.addInterface('tcp', None) |
303 | self.cfg.addInterface('tcp', None) |
| - | 304 | # create daemon |
|
| - | 305 | self.cfg.addServerDaemon('tcpd', None) |
|
| 304 | 306 | ||
| 305 | self.ifNotifier = self.IfNotifier(self) |
307 | self.ifNotifier = self.IfNotifier(self) |
| 306 | for nodeIf in self.cfg.nodeInterfaces: |
308 | for nodeIf in self.cfg.nodeInterfaces: |
| 307 | nodeIf.setIfNotifier(self.ifNotifier) |
309 | nodeIf.setIfNotifier(self.ifNotifier) |
| 308 | 310 | ||
| Line 317... | Line 319... | ||
| 317 | 'or that you do not have permission to access it.' |
319 | 'or that you do not have permission to access it.' |
| 318 | sys.exit(-1) |
320 | sys.exit(-1) |
| 319 | 321 | ||
| 320 | print 'INIT: Initialize/gather info on connected can nodes and load associated state' |
322 | print 'INIT: Initialize/gather info on connected can nodes and load associated state' |
| 321 | print 'INIT: Starting configured servers' |
323 | print 'INIT: Starting configured servers' |
| - | 324 | for serverd in self.cfg.serverDaemons: |
|
| - | 325 | if not serverd.start(): |
|
| - | 326 | print 'FATAL: Failed to initialize server daemon.' |
|
| - | 327 | system.exit(-1) |
|
| 322 | 328 | ||
| 323 | print 'CanDaemon v1 ready' |
329 | print 'CanDaemon v1 ready' |
| 324 | print 'Enter command or type \"help\" for a list of commands' |
330 | print 'Enter command or type \"help\" for a list of commands' |
| 325 | while not self.terminated: |
331 | while not self.terminated: |
| 326 | input = raw_input('> ') |
332 | input = raw_input('> ') |