8687.15.8
by Karl Fogel
Add the copyright header block to more files. |
1 |
# Copyright 2009 Canonical Ltd. This software is licensed under the
|
2 |
# GNU Affero General Public License version 3 (see the file LICENSE).
|
|
3 |
||
0.1.8
by Andrew Bennetts
Copyright notices, explain how to use .tac file |
4 |
# This is a Twisted application config file. To run, use:
|
5 |
# twistd -noy sftp.tac
|
|
6 |
# or similar. Refer to the twistd(1) man page for details.
|
|
7 |
||
3858.1.12
by jml at canonical
Make the SFTP tac file use the service defined in c.l.daemons.sftp |
8 |
from twisted.application import service |
9 |
||
2902.2.32
by Andrew Bennetts
Move authserver config into launchpad.conf; remove test-only variants of authserver.tac and sftp.tac; remove a hard-coded path from a test. |
10 |
from canonical.launchpad.daemons import tachandler |
8426.6.1
by Michael Hudson
bzr ls --versioned --recursive --kind=file | xargs sed -i -e 's,from canonical.codehosting,from lp.codehosting,' |
11 |
from lp.codehosting.sshserver.service import SSHService |
3858.1.12
by jml at canonical
Make the SFTP tac file use the service defined in c.l.daemons.sftp |
12 |
|
13 |
||
14 |
# Construct an Application that includes a supermirror SFTP service.
|
|
0.1.3
by Andrew Bennetts
Remove cruft, flesh out the code and a sample tac file a bit more |
15 |
application = service.Application('sftponly') |
4330.4.18
by Jonathan Lange
Correct typo to make run_all work properly. |
16 |
svc = SSHService() |
2902.2.32
by Andrew Bennetts
Move authserver config into launchpad.conf; remove test-only variants of authserver.tac and sftp.tac; remove a hard-coded path from a test. |
17 |
svc.setServiceParent(application) |
0.1.3
by Andrew Bennetts
Remove cruft, flesh out the code and a sample tac file a bit more |
18 |
|
2902.2.32
by Andrew Bennetts
Move authserver config into launchpad.conf; remove test-only variants of authserver.tac and sftp.tac; remove a hard-coded path from a test. |
19 |
# Service that announces when the daemon is ready
|
20 |
tachandler.ReadyService().setServiceParent(application) |