This commit is contained in:
2024-03-10 15:34:52 +01:00
parent 894e09ab0c
commit 64775066d6
5 changed files with 68 additions and 0 deletions

12
nproc.service Normal file
View File

@ -0,0 +1,12 @@
# 2024-03-04
[Unit]
Description=VM define env PROCESSORS
Before=docker.service
[Service]
Type=oneshot
ExecStart=/usr/bin/bash -c 'echo "PROCESSORS=$(nproc)" > /etc/env/nproc'
[Install]
WantedBy=multi-user.target