diff --git a/ramdisk.service b/ramdisk.service new file mode 100644 index 0000000..abd77c8 --- /dev/null +++ b/ramdisk.service @@ -0,0 +1,12 @@ +[Unit] +Description=RAM disk for encoder logs + +[Service] +Type=oneshot +ExecStartPre=/bin/mkdir -p /mnt/ramdisk +ExecStart=/bin/mount -t tmpfs -o size=100m tmpfs /mnt/ramdisk +ExecStop=/bin/umount /mnt/ramdisk +RemainAfterExit=yes + +[Install] +WantedBy=multi-user.target