/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: 2016-02-06 14:54:50 UTC
  • Revision ID: teddy@recompile.se-20160206145450-617bg20ezzt8a5mp
On cleanup, Signal ClientRemoved only if using D-Bus.

* mandos (main/cleanup): Bug fix: only send D-Bus signal ClientRemoved
                         if actually using D-Bus.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
## bind() on the socket, and also won't announce the ZeroConf service.
22
22
#ExecStart=/usr/sbin/mandos --foreground --socket=0
23
23
#StandardInput=socket
24
 
# Restrict what the Mandos daemon can do.  Note that this also affects
25
 
# "checker" programs!
26
 
PrivateTmp=yes
27
 
PrivateDevices=yes
28
 
ProtectSystem=full
29
 
ProtectHome=yes
30
 
CapabilityBoundingSet=CAP_KILL CAP_SETGID CAP_SETUID CAP_DAC_OVERRIDE CAP_NET_RAW
31
 
# Bug workaround; the daemon does not stop on SIGTERM until poked via
32
 
# D-Bus; cause is unknown at this time
33
 
ExecStop=/bin/kill -TERM $MAINPID ; /usr/sbin/mandos-ctl >/dev/null 2>&1
34
24
 
35
25
[Install]
36
26
WantedBy=multi-user.target