/mandos/trunk

To get this branch, use:
bzr branch http://bzr.recompile.se/loggerhead/mandos/trunk

« back to all changes in this revision

Viewing changes to mandos.service

  • Committer: Teddy Hogeborn
  • Date: 2012-05-07 20:46:51 UTC
  • Revision ID: teddy@recompile.se-20120507204651-qx5o5ztwmau54mh4
* mandos-monitor: Speedup: Use properties from D-Bus
                  GetAllClientsWithProperties() call.  Also use
                  super() properly - only use keyword arguments and
                  strip them off as "kwargs" is passed on.
  (MandosClientPropertyCache.__init__): Take new "properties"
                                        argument; use it to skip
                                        calling D-Bus GetAll() method.
                                        Call super().  Bind self._
  (MandosClientPropertyCache._property_changed): New helper function.
  (MandosClientPropertyCache.property_changed): Changed to take
                                                keyword arguments.
  (MandosClientPropertyCache.delete): Bug fix: Don't call
                                      super().__init__().
  (MandosClientWidget.__init__): Don't take *args.  Strip used keyword
                                 arguments before calling super().
  (MandosClientWidget.property_changed): Removed dead code.
  (MandosClientWidget.delete): Don't take *args.
  (MandosClientWidget.property_changed): Don't take "value" argument,
                                         since it is not used.
  (ConstrainedListBox.keypress): Take *args, **kwargs and pass them on
                                 to super().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
[Unit]
2
 
Description=Server of encrypted passwords to Mandos clients
3
 
 
4
 
[Service]
5
 
Type=simple
6
 
## Type=dbus is not appropriate, because Mandos also needs to announce
7
 
## its ZeroConf service and be reachable on the network.
8
 
#Type=dbus
9
 
BusName=se.recompile.Mandos
10
 
# If you add --no-dbus, also comment out BusName above, and vice versa
11
 
ExecStart=/usr/sbin/mandos --foreground
12
 
Restart=always
13
 
KillMode=process
14
 
## Using socket activation won't work either, because systemd always
15
 
## does bind() on the socket, and also won't announce the ZeroConf
16
 
## service.
17
 
#ExecStart=/usr/sbin/mandos --foreground --socket=0
18
 
#StandardInput=socket
19
 
 
20
 
[Install]
21
 
WantedBy=multi-user.target