0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

* Use the ‘path’ attribute in Upstart jobs in more places. It's a bit

more readable (also in "ps" output).

svn path=/nixos/trunk/; revision=30565
This commit is contained in:
Eelco Dolstra 2011-11-25 16:32:54 +00:00
parent 1d5d7036d0
commit 8eba736da9
18 changed files with 70 additions and 42 deletions

View file

@ -562,16 +562,16 @@ in
# the latter is enabled.
+ optionalString config.services.postgresql.enable " and started postgresql";
environment =
{ PATH = concatStringsSep ":" (
[ "${pkgs.coreutils}/bin" "${pkgs.gnugrep}/bin" ]
++ # Needed for PHP's mail() function. !!! Probably the
# ssmtp module should export the path to sendmail in
# some way.
optional config.networking.defaultMailServer.directDelivery "${pkgs.ssmtp}/sbin"
++ (concatMap (svc: svc.extraServerPath) allSubservices) );
path =
[ httpd pkgs.coreutils pkgs.gnugrep ]
++ # Needed for PHP's mail() function. !!! Probably the
# ssmtp module should export the path to sendmail in
# some way.
optional config.networking.defaultMailServer.directDelivery pkgs.ssmtp
++ concatMap (svc: svc.extraServerPath) allSubservices;
PHPRC = if enablePHP then phpIni else "";
environment =
{ PHPRC = if enablePHP then phpIni else "";
TZ = config.time.timeZone;
@ -605,7 +605,7 @@ in
daemonType = "fork";
exec = "${httpd}/bin/httpd -f ${httpdConf}";
exec = "httpd -f ${httpdConf}";
preStop =
''