mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Fix args passing to execvp
This commit is contained in:
parent
9f18c93771
commit
17af73ddd5
2 changed files with 2 additions and 3 deletions
|
@ -51,10 +51,9 @@ in {
|
||||||
environment.etc."offlineimaprc".text = cfg.extraConfig;
|
environment.etc."offlineimaprc".text = cfg.extraConfig;
|
||||||
launchd.user.agents.offlineimap = {
|
launchd.user.agents.offlineimap = {
|
||||||
path = [ cfg.package ];
|
path = [ cfg.package ];
|
||||||
command = "offlineimap";
|
command = "${cfg.package}/bin/offlineimap -c /etc/offlineimaprc" + optionalString (cfg.runQuick) " -q";
|
||||||
serviceConfig.KeepAlive = false;
|
serviceConfig.KeepAlive = false;
|
||||||
serviceConfig.RunAtLoad = true;
|
serviceConfig.RunAtLoad = true;
|
||||||
serviceConfig.ProgramArguments = [ "-c" "/etc/offlineimaprc" ] ++ optional (cfg.runQuick) "-q";
|
|
||||||
serviceConfig.StartInterval = cfg.startInterval;
|
serviceConfig.StartInterval = cfg.startInterval;
|
||||||
serviceConfig.StandardErrorPath = "/var/log/offlineimap.log";
|
serviceConfig.StandardErrorPath = "/var/log/offlineimap.log";
|
||||||
serviceConfig.StandardOutPath = "/var/log/offlineimap.log";
|
serviceConfig.StandardOutPath = "/var/log/offlineimap.log";
|
||||||
|
|
|
@ -34,7 +34,7 @@ in
|
||||||
test = ''
|
test = ''
|
||||||
echo >&2 "checking offlineimap service in ~/Library/LaunchAgents"
|
echo >&2 "checking offlineimap service in ~/Library/LaunchAgents"
|
||||||
grep "org.nixos.offlineimap" ${config.out}/user/Library/LaunchAgents/org.nixos.offlineimap.plist
|
grep "org.nixos.offlineimap" ${config.out}/user/Library/LaunchAgents/org.nixos.offlineimap.plist
|
||||||
grep "exec\ offlineimap" ${config.out}/user/Library/LaunchAgents/org.nixos.offlineimap.plist
|
grep "bin/offlineimap" ${config.out}/user/Library/LaunchAgents/org.nixos.offlineimap.plist
|
||||||
grep "\-q" ${config.out}/user/Library/LaunchAgents/org.nixos.offlineimap.plist
|
grep "\-q" ${config.out}/user/Library/LaunchAgents/org.nixos.offlineimap.plist
|
||||||
|
|
||||||
echo >&2 "checking config in /etc/offlineimaprc"
|
echo >&2 "checking config in /etc/offlineimaprc"
|
||||||
|
|
Loading…
Reference in a new issue