* Don't use RestartSec for the channel update scripts. Large intervals can cause switch-to-configuration to hang for a correspondingly long time. This is because "start multi-user.target" will wait until services in the auto-restart state have restarted, which can take a long time if you have RestartSec=3600.
* Don't use RestartSec for the channel update scripts. Large intervals can cause switch-to-configuration to hang for a correspondingly long time. This is because "start multi-user.target" will wait until services in the auto-restart state have restarted, which can take a long time if you have RestartSec=3600. svn path=/configurations/trunk/tud/; revision=34647
Eelco Dolstra committed
Nov 9, 2012 at 11:14 UTC
583d174ff4e09979c54bf1c4e948f8e53a23e1db
1 file changed
+4
-8
lucifer.nix
+4
-8
@@ -113,10 +113,9 @@
113
script =
114
''
115
rm -rf /data/releases/nixpkgs/.tmp-*
116
- exec su - hydra-mirror -c 'cd release/channels; exec ./mirror-nixpkgs.sh'
116
+ exec su - hydra-mirror -c 'cd release/channels; while true; do ./mirror-nixpkgs.sh; sleep 300; done'
117
'';
118
serviceConfig.Restart = "always";
119
- serviceConfig.RestartSec = 300;
119
serviceConfig.CPUShares = 100;
120
};
121
@@ -126,10 +125,9 @@
125
path = [ pkgs.su ];
126
script =
127
''
129
- exec su - hydra-mirror -c 'cd release/channels; exec ./generate-linear-patch-sequence.sh'
128
+ exec su - hydra-mirror -c 'cd release/channels; while true; do ./generate-linear-patch-sequence.sh; sleep 300; done'
129
'';
130
serviceConfig.Restart = "always";
132
- serviceConfig.RestartSec = 300;
131
serviceConfig.CPUShares = 100;
132
};
133
@@ -141,10 +139,9 @@
139
script =
140
''
141
rm -rf /data/releases/nixos/.tmp-*
144
- exec su - hydra-mirror -c 'cd release/channels; exec ./mirror-nixos.sh'
142
+ exec su - hydra-mirror -c 'cd release/channels; while true; do ./mirror-nixos.sh; sleep 300; done'
143
'';
144
serviceConfig.Restart = "always";
147
- serviceConfig.RestartSec = 300;
145
serviceConfig.CPUShares = 100;
146
};
147
@@ -153,10 +150,9 @@
150
path = [ pkgs.su ];
151
script =
152
''
156
- exec su - hydra-mirror -c 'cd release/channels; exec ./convert-to-binary-cache.pl'
153
+ exec su - hydra-mirror -c 'cd release/channels; while true; do ./convert-to-binary-cache.pl; sleep 3600; done'
154
'';
155
serviceConfig.Restart = "always";
159
- serviceConfig.RestartSec = 3600;
156
serviceConfig.CPUShares = 100;
157
};
158