Changeset 11313 for src


Ignore:
Timestamp:
Jul 3, 2012, 6:54:45 AM (12 years ago)
Author:
rick
Message:

The initial ramdisk creation was not an executable script, needed as it is run from cron at boottime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/django_gheat/init_ramdisk.sh

    • Property svn:executable set to *
    r9556 r11313  
    1 MD=`mdconfig -a -t malloc -s 1g`
     1#!/bin/sh
     2#
     3# Quick for building memory disk cache file
     4#
     5# Meant to be used in crontab like this:
     6#     @reboot root /usr/local/django_gheat/init_ramdisk.sh
     7#
     8# Rick van der Zwet <rick@wirelessleiden.nl>
     9#
     10MD=`mdconfig -a -t malloc -s 1g` || exit 1
    211newfs /dev/$MD
    312mount -o rw,noatime /dev/$MD /usr/local/var
Note: See TracChangeset for help on using the changeset viewer.