transmission: Add apparmor service dependency

This commit is contained in:
Ricardo M. Correia 2013-05-28 17:48:08 +00:00
parent 2e61811284
commit 0a0beadecd

View File

@ -104,8 +104,10 @@ in
systemd.services.transmission = { systemd.services.transmission = {
description = "Transmission BitTorrent Daemon"; description = "Transmission BitTorrent Daemon";
after = [ "network.target" ]; after = [ "network.target" ] ++ optional (config.security.apparmor.enable && cfg.apparmor) "apparmor.service";
requires = mkIf (config.security.apparmor.enable && cfg.apparmor) [ "apparmor.service" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
# 1) Only the "transmission" user and group have access to torrents. # 1) Only the "transmission" user and group have access to torrents.
# 2) Optionally update/force specific fields into the configuration file. # 2) Optionally update/force specific fields into the configuration file.
serviceConfig.ExecStartPre = serviceConfig.ExecStartPre =