Estoy tratando de montar un disco RAM en el arranque con esto:
/Usuarios/Aram/Desarrollo/Herramientas/ramdisk.sh
diskutil erasevolume HFS+ "RamDisk" `hdiutil attach -nomount ram://800000`
com.aram.ramdisk.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN"
"http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.aram.ramdisk</string>
<key>ProgramArguments</key>
<array>
<string>/bin/sh</string>
<string>/Users/Aram/Development/Tools/ramdisk.sh</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Y luego a correr:
sudo chown root:wheel /Library/LaunchDaemons/com.aram.ramdisk.plist
sudo launchctl load -w /Library/LaunchDaemons/com.aram.ramdisk.plist
Pero me salen en la consola:
1/08/12 1:29:25.982 PM fseventsd[64]: could not open <</Volumes/RamDisk/.fseventsd/fseventsd-uuid>> (No such file or directory)
1/08/12 1:29:25.982 PM fseventsd[64]: log dir: /Volumes/RamDisk/.fseventsd getting new uuid: 102D7293-F1F1-4640-AA50-D547C365339F
1/08/12 1:29:24.561 PM sudo[1193]: Aram : TTY=ttys000 ; PWD=/Library/LaunchDaemons ; USER=root ; COMMAND=/bin/launchctl load -w /Library/LaunchDaemons/com.aram.ramdisk.plist
1/08/12 1:40:17.052 PM com.apple.launchd[1]: (com.aram.ramdisk) Throttling respawn: Will start in 8 seconds
Funciona si pongo KeepAlive en true, pero entonces crea un disco RAM cada 10 segundos.
¿Hay alguna forma de retrasar el script 10 segundos antes de que se ejecute?