LaunchDaemon to run as a particular user
Nathan Sims <[email protected]> Mon, 21 Nov 2011 21:15:30 -0800
| Newsgroups | gmane.comp.macosx.devel |
|---|---|
| Message-ID | <[email protected]> |
I need to have a background daemon process that the system runs under my = user automatically, 24/7, even when no one is logged in to the machine.=20= I created a plist and placed it in /Library/LaunchDaemons, and the = system loads it up, but it runs as root, not my user. I've seen this = done before by adding a certain tag in the plist file (the name of which = I forget), but after googling around for a while I still haven't = identified which tag it is. (I know a launch agent runs as the user, but = only when the user logs in, which is why I need it to be a daemon.)=20 Does anyone know of the tag, or is there another way to do this?