commit 51894fae544057291256fe809c92dfdd805965ad Author: root Date: Wed Aug 23 15:31:16 2023 +0200 added diff --git a/notizen b/notizen new file mode 100644 index 0000000..d110db0 --- /dev/null +++ b/notizen @@ -0,0 +1,23 @@ +#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