On Wed, 12 Aug 2009 14:40:49 -0700, Grant wrote:
> I run one program which needs to be started as a particular user
> whenever the system comes up, but there is no ebuild. Is this the
> Gentoo way?
>
> # cat /etc/init.d/rc.local
> #!/sbin/runscript
>
> start() {
> su user
> /path/to/program/binary
> }
Yes, or you could use
start() {
su - user -c /path/to/program/binary
}
which runs the program with the user's full environment instead of
inheriting root's.
--
Neil Bothwick
C: (n.) the language following A and B. The world still awaits D and
E. By Z, it may be acceptable for general use.
signature.asc
Description: PGP signature

