Is there a launch daemon size limit?
On several occasions I have put bash scripts into launch daemons with relatively few difficulties but I have met a strange problem.
I use the following structure:
<key>ProgramArguments</key>
<array>
<string>/bin/bash</string>
<string>-c</string>
<string>bash script</string>
On this occasion it is located at: /Library/LaunchAgents.
I have resolved all the bugs but the script gets confused when its size exceeds about 1,100 bytes - XML plist size about 1500 bytes.
What limit am I exceeding on my OS X 10.5.8 and how can I increase it?
I am aware that it may be better to run such a large script from another location but I would like to know the answers to my question.
My default limits are:
$ ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
open files (-n) 256
pipe size (512 bytes, -p) 1
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 266
virtual memory (kbytes, -v) unlimited