initial
This commit is contained in:
12
mem.service
Normal file
12
mem.service
Normal file
@ -0,0 +1,12 @@
|
||||
# 2024-03-10
|
||||
|
||||
[Unit]
|
||||
Description=VM define env MEM (Go)
|
||||
Before=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/bash -c 'MEMSIZE=$(LANG=en_US-8 && lsmem -b --summary=only | sed -ne "/online/s/.* //p" && LANG=fr_FR.UTF-8) && MEMSIZE=$(( MEMSIZE / 1024 / 1024 / 1024 )) && echo "MEMORY=$MEMSIZE" > /etc/env/memsize'
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Reference in New Issue
Block a user