I have a process running as the gearman user and I want to change open files
to avoid getting this nasty error:
ERROR 2014-09-12 17:49:14.000000 [ main ] accept(Too many open files) -> libgearman-server/gearmand.cc:788
How can I run ulimit as another user on Ubuntu and change open files? I don't currently login as gearman but I do have root access. I tried doing this:
su gearman --shell /bin/bash --command "ulimit -n"
as recommended here but nothing get's output:
$ su gearman --shell /bin/bash --command "ulimit -n"
Password:
$