Skip to content

Commit

Permalink
PYTHONHASHSEED inside service conf
Browse files Browse the repository at this point in the history
  • Loading branch information
rvencu committed Jul 6, 2021
1 parent 2fac62f commit ee070ce
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cloud-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ runcmd:
- echo "[Service]" >> /etc/systemd/system/crawl.service
- echo "Type=simple" >> /etc/systemd/system/crawl.service
- echo "LimitNOFILE=2097152" >> /etc/systemd/system/crawl.service
- echo "PYTHONHASHSEED=0" >> /etc/systemd/system/crawl.service
- echo "WorkingDirectory=/home/crawl" >> /etc/systemd/system/crawl.service
- echo "ExecStart=/home/crawl/crawl.sh" >> /etc/systemd/system/crawl.service
- echo "EnvironmentFile=/etc/environment" >> /etc/systemd/system/crawl.service
Expand All @@ -88,7 +89,7 @@ runcmd:
- echo "#!/bin/bash" >> /home/crawl/crawl.sh
- echo "while true" >> /home/crawl/crawl.sh
- echo "do" >> /home/crawl/crawl.sh
- echo "PYTHONHASHSEED=0 python3 -u /home/crawl/crawlingathome-gpu-hcloud/worker.py >> /home/crawl/crawl.log 2>&1" >> /home/crawl/crawl.sh
- echo "python3 -u /home/crawl/crawlingathome-gpu-hcloud/worker.py >> /home/crawl/crawl.log 2>&1" >> /home/crawl/crawl.sh
- echo "sleep 1" >> /home/crawl/crawl.sh
- echo "done" >> /home/crawl/crawl.sh
- chmod 744 /home/crawl/crawl.sh
Expand Down

0 comments on commit ee070ce

Please sign in to comment.