Files
systemd_notiz/notizen
2023-08-23 15:31:16 +02:00

24 lines
438 B
Plaintext

#create Unit
systemctl edit --full --force vmstatd.service
#systemd-nspawn
systemd-nspawn -D /var/lib/machine/rocky7 -b
machinectl str+altGr+9
/var/lib/machines/rocky7
[Unit]
Description=vmstat as daemon
[Service]
Type=simple
ExecStart=/usr/bin/vmstat $VMSTAT_OPTS 3
EnvironmentFile=-/etc/default/vmstatd
StandardOutput=append:/var/log/vmstat.log
/etc/default/vmstatd
VMSTAT_OPTS=-ntw
VMSTAT_DELAY=3
VMSTAT_LOG=/var/log/vmstat.log