grep -ril startupitem.executable
| xargs less
suggests that sudo -u is the way to do it if a program doesn't know how
to drop privileges. If that doesn't work, I guess several ports have the
same problem that you describe with su. sudo does fork a process per the
man page, so they may do.
(sent to macports-dev)
On 17/09/16 16:12, Javier Alcázar wrote:
I'm creating a new Portfile with startupitem.executable, and wondering
what is the best way to execute the command with a specific user.
I tried using "su -c executable args" but with this approach
launchd ends up monitoring the "su" process instead of the "executable"
What would you recommend to do so launchd looks at the "executable"
macports-users mailing list
macports-dev mailing list