Skip to content

Commit

Permalink
Create ramdisk.service
Browse files Browse the repository at this point in the history
  • Loading branch information
rmens authored Feb 28, 2024
1 parent 56dc0e4 commit 901aae8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ramdisk.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 901aae8

Please sign in to comment.