mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-09-19 04:59:01 +00:00
doc/dev: Remove mention of managed_services
Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
781d8fa18b
commit
40830f73f1
@ -32,14 +32,6 @@ triggers the setup() logic allowing the app to run upgrade scripts. This
|
|||||||
attribute is part of the :class:`~plinth.app.Info` component. Need for this
|
attribute is part of the :class:`~plinth.app.Info` component. Need for this
|
||||||
attribute at the module level will be removed in the future.
|
attribute at the module level will be removed in the future.
|
||||||
|
|
||||||
<app-module>.managed_services
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
Optional. This must contain the list of all services that this app deals with.
|
|
||||||
This is mostly needed to enforce better security. This information is part of
|
|
||||||
the :class:`~plinth.daemon.Daemon` component. Need for this attribute at the
|
|
||||||
module level will be removed in the future.
|
|
||||||
|
|
||||||
<app-module>.managed_paths
|
<app-module>.managed_paths
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
|
|||||||
@ -92,15 +92,13 @@ our app's class.
|
|||||||
|
|
||||||
from plinth.daemon import Daemon
|
from plinth.daemon import Daemon
|
||||||
|
|
||||||
managed_services = ['transmission-daemon']
|
|
||||||
|
|
||||||
class TransmissionApp(app_module.App):
|
class TransmissionApp(app_module.App):
|
||||||
...
|
...
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
...
|
...
|
||||||
|
|
||||||
daemon = Daemon('daemon-transmission', managed_services[0],
|
daemon = Daemon('daemon-transmission', 'transmission-daemon',
|
||||||
listen_ports=[(9091, 'tcp4')])
|
listen_ports=[(9091, 'tcp4')])
|
||||||
self.add(daemon)
|
self.add(daemon)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user