@cryptotaxi247 / infra / commits / df184471

Remove old mturk stuff

Eelco Dolstra committed Oct 17, 2020 at 22:41 UTC df1844713edcef0119e86b5d3ff273209b83e102
1 file changed -53
delft/mturk.nix deleted
-53
@@ -1,53 +0,0 @@
1 -{ config, pkgs, ... }:
2 -
3 -with pkgs.lib;
4 -
5 -{
6 - jobs.mturk_webserver_production =
7 - { name = "mturk-webserver-production";
8 - startOn = "started network-interfaces";
9 - exec = ''
10 - ${pkgs.su}/bin/su - mturk -c 'MTURK_STATE=/home/mturk/state-production WEBINTERFACE_HOME=/home/mturk/icse-2012/src/WebInterface WEBINTERFACE_CONFIG=/home/mturk/icse-2012/src/WebInterface/webinterface-production.conf exec /home/mturk/icse-2012/src/WebInterface/script/webinterface_server.pl -f -k >> /home/mturk/state-production/webserver.log 2>&1'
11 - '';
12 - };
13 -
14 - jobs.mturk_webserver_sandbox =
15 - { name = "mturk-webserver-sandbox";
16 - startOn = "started network-interfaces";
17 - exec = ''
18 - ${pkgs.su}/bin/su - mturk -c 'WEBINTERFACE_HOME=/home/mturk/icse-2012/src/WebInterface WEBINTERFACE_CONFIG=/home/mturk/icse-2012/src/WebInterface/webinterface-sandbox.conf exec /home/mturk/icse-2012/src/WebInterface/script/webinterface_server.pl -p 3001 -f -k >> /home/mturk/state-sandbox/webserver.log 2>&1'
19 - '';
20 - };
21 -
22 - jobs.mturk_vnc_multiplexer_production =
23 - { name = "mturk-vnc-multiplexer-production";
24 - startOn = "started network-interfaces";
25 - exec = ''
26 - ${pkgs.su}/bin/su - mturk -c 'MTURK_STATE=/home/mturk/state-production exec vnc-multiplexer.pl >> /home/mturk/state-production/multiplexer.log 2>&1'
27 - '';
28 - };
29 -
30 - jobs.mturk_vnc_multiplexer_sandbox =
31 - { name = "mturk-vnc-multiplexer-sandbox";
32 - startOn = "started network-interfaces";
33 - exec = ''
34 - ${pkgs.su}/bin/su - mturk -c 'exec vnc-multiplexer.pl >> /home/mturk/state-sandbox/multiplexer.log 2>&1'
35 - '';
36 - };
37 -
38 - /*
39 - jobs.mturk_hydra_bridge_production =
40 - { name = "mturk-hydra-bridge-production";
41 - exec = ''
42 - ${pkgs.su}/bin/su - mturk -c 'MTURK_STATE=/home/mturk/state-production exec create-hits-from-hydra.pl >> /home/mturk/state-production/hydra-bridge.log 2>&1'
43 - '';
44 - };
45 - */
46 -
47 - jobs.mturk_vm_cleanup_production =
48 - { name = "mturk-vm-cleanup-production";
49 - exec = ''
50 - ${pkgs.su}/bin/su - mturk -c 'export MTURK_STATE=/home/mturk/state-production; while true; do cleanup-vms.pl >> /home/mturk/state-production/cleanup-vms.log 2>&1; sleep 60; done'
51 - '';
52 - };
53 -}
\ No newline at end of file