use ExecStart instead of script, this way we get rid of systemd wrapper scripts
This commit is contained in:
parent
bb89f2eb99
commit
c50d7cbc8d
|
@ -35,7 +35,7 @@ in {
|
||||||
description = "Deluge BitTorrent Daemon";
|
description = "Deluge BitTorrent Daemon";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.pythonPackages.deluge ];
|
path = [ pkgs.pythonPackages.deluge ];
|
||||||
script = "${pkgs.pythonPackages.deluge}/bin/deluged -d";
|
serviceConfig.ExecStart = "${pkgs.pythonPackages.deluge}/bin/deluged -d";
|
||||||
serviceConfig.User = "deluge";
|
serviceConfig.User = "deluge";
|
||||||
serviceConfig.Group = "deluge";
|
serviceConfig.Group = "deluge";
|
||||||
};
|
};
|
||||||
|
@ -45,7 +45,7 @@ in {
|
||||||
description = "Deluge BitTorrent WebUI";
|
description = "Deluge BitTorrent WebUI";
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ pkgs.pythonPackages.deluge ];
|
path = [ pkgs.pythonPackages.deluge ];
|
||||||
script = "${pkgs.pythonPackages.deluge}/bin/deluge --ui web";
|
serviceConfig.ExecStart = "${pkgs.pythonPackages.deluge}/bin/deluge --ui web";
|
||||||
serviceConfig.User = "deluge";
|
serviceConfig.User = "deluge";
|
||||||
serviceConfig.Group = "deluge";
|
serviceConfig.Group = "deluge";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue