Re: How to start a user process on boot?

From: Miquel van Smoorenburg (miquels_at_cistron.nl)
Date: 11/17/03

  • Next message: eric brown: "Re: Knoppix ,woody and LILO"
    Date: Mon, 17 Nov 2003 15:45:41 +0000 (UTC)
    To: debian-user@lists.debian.org
    
    

    In article <20031116163955.GA680@intac.com>,
    Anita Lewis <ajlewis2@intac.com> wrote:
    >>
    >> > I want to start a p2p program while booting. I tried to write a script=20
    >> > for /etc/init.d it works but only as root.
    >> > I want the program starting as a user process (for security reasons).
    >> >=20
    >> > How can root start automatically a process as a user?
    >>
    >> Beside using start-stop-daemon, su or sudo, you could just use cron. As
    >> the user run "crontab -e" and use @reboot as time argument.
    >>
    >>
    >> Yours sincerely,
    >> Alexander
    >
    >I tried doing this with @reboot in all the time arguments and in just the
    >minutes. When I reboot, neither way works. How exactly do I put @reboot in
    >the crontab? Could you give me an example, please?
    >
    >Here is what I have currently:
    >
    >@reboot * * * * fahstart
    >
    >'fahstart' is what I normally type to get Folding@Home going. It's a little
    >script in ~/bin.

    Something like this:

    =-=-=-=-=

    # Set the path
    PATH=/home/ajlewis2/bin:$PATH

    # Run fahstart at boot time.
    @reboot fahstart

    =-=-=-=-=

    Mike.

    -- 
    To UNSUBSCRIBE, email to debian-user-request@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: eric brown: "Re: Knoppix ,woody and LILO"

    Relevant Pages