Mailinglist Archive: opensuse (4343 mails)

< Previous Next >
Re: [SLE] Start an application with the RC.D Scripts but under specific user
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Wed, 6 Nov 2002 14:45:37 +0100
  • Message-id: <200211061445.37699.andjoh@xxxxxxxxxx>
On Wednesday 06 November 2002 14.34, Silviu Marin-Caea wrote:
> Linux User wrote:
> > But... I then I will need to "login" in order to execute the
> > application... and what I need it's to run it as soon as the Computer
> > turns on (like all the rc.d run levels scrtipts) but I need that the
> > application run's as if was owned by a user different than root.
>
> Ok, then.
>
> Make an /etc/init.d/whatever script and put this in it:
>
> su --login --command=application user
>
> Look at /etc/init.d/skeleton to make a better script.

SuSE's init scripts use startproc to launch processes. Have you tried using
the -u flag to startproc?


< Previous Next >