Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: How to start a program at boot time?

  1. #1
    Join Date
    Oct 2009
    Location
    Dhaka,Bangladesh
    Posts
    251

    Default How to start a program at boot time?

    I do this every time.
    Code:
    ifup dsl0
    How can i set this to start at boot time?

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,973

    Default Re: How to start a program at boot time?

    Can't it be configured using YaST > Network devices ?

    I ask because you just have very short description without much detail. I do not think ver y much people here do bother to start heir network devices by hand on boot. That is allready cared for (by configuring in YaST and using traditional ifup).
    Henk van Velden

  3. #3
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,727
    Blog Entries
    2

    Default Re: How to start a program at boot time?

    Henk's question is a good one. But, assuming you have a good reason (that normal tools don't work), you can put the command as a single line in the file /etc/init.d/boot.local. If that doesn't work because it's too soon in the boot process, there is a slightly more complicated way which I can describe if necessary, so let me know.
    Leap 42.3 & 15.1(Beta) &KDE
    FYIs from the days of yore

  4. #4
    Chill Out NNTP User

    Default Re: How to start a program at boot time?

    On Fri, 02 Jul 2010 13:41:43 +0000, colao wrote for a reply:

    > I do this every time.
    >
    > Code:
    > --------------------
    >
    > ifup dsl0
    >
    > --------------------
    >
    > How can i set this to start at boot time?


    Code:
    --------------
    Toolbar => System => System => Startup Applications => add entry for ifup
    dsl0
    --------------

    --
    Chillingout@opensuse.forum

  5. #5
    Carlos E. R. NNTP User

    Default Re: How to start a program at boot time?

    On Fri, 02 Jul 2010 19:27:32 GMT swerdna <> wrote:

    >
    > Henk's question is a good one. But, assuming you have a good reason
    > (that normal tools don't work), you can put the command as a single
    > line in the file /etc/init.d/boot.local. If that doesn't work because
    > it's too soon in the boot process, there is a slightly more
    > complicated way which I can describe if necessary, so let me know.


    use :

    /etc/init.d/after.local

    instead :-)

    Assuming that normal network setup tools do not work, of course ;-)

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Elessar))


  6. #6
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,973

    Default Re: How to start a program at boot time?

    @chill out
    Which toolbar of what?

    @Carlos E.R.
    That is a good one. New to me (and imho to most of us). Because it does not allready exist as an empty one like /etc/init.d/boot.local.
    I checked in /etc/init.d/rc and it checks for the existence and then executes as last one in the sequence. That is the solution for those actions where boot.local is to early!
    Thanks Carlos.

    BTW, while Carlos' solution will work for the OP imho, I do not know if the OP should not try to solve his problem by configuring in YaST.
    Henk van Velden

  7. #7
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,763
    Blog Entries
    14

    Default Re: How to start a program at boot time?

    @Carlos, cheers. Did not know this one. You gave me a solution to something I work around in a network I manage. ATM I use a script which sleeps for some secs then executes some commands. Using after.local does it straight away. Learning every day and liking it.

    @OP: think about Henk's solution first. It's a network issue, configuring the networking properly should arrange things without extra measures.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  8. #8
    Carlos E. R. NNTP User

    Default Re: How to start a program at boot time?

    On 2010-07-03 08:16 GMT hcvv wrote:


    > @Carlos E.R.
    > That is a good one. New to me (and imho to most of us). Because it
    > does not allready exist as an empty one like -/etc/init.d/boot.local-.
    > I checked in- /etc/init.d/rc- and it checks for the existence and then
    > executes as last one in the sequence. That is the solution for those
    > actions where -boot.local- is to early!
    > Thanks Carlos.


    Welcome! :-)

    I think I was reading once that rc file for some other reason and found
    that out per chance. Or somebody mentioned it in passing, dunno. It is
    a recent addition, by the way (11.1 or thereabouts): what I did before
    was create a new service for whatever I needed.


    > BTW, while Carlos' solution will work for the OP imho, I do not know
    > if the OP should not try to solve his problem by configuring in YaST.


    Absolutely.

    --
    Cheers / Saludos,

    Carlos E. R.
    (from 11.2 x86_64 "Emerald" GM (Elessar))


  9. #9
    Chill Out NNTP User

    Default Re: How to start a program at boot time?

    On Sat, 03 Jul 2010 08:16:01 +0000, hcvv wrote for a reply:

    > @chill out
    > Which toolbar of what?
    >
    > @Carlos E.R.
    > That is a good one. New to me (and imho to most of us). Because it does
    > not allready exist as an empty one like -/etc/init.d/boot.local-. I
    > checked in- /etc/init.d/rc- and it checks for the existence and then
    > executes as last one in the sequence. That is the solution for those
    > actions where -boot.local- is to early! Thanks Carlos.
    >
    > BTW, while Carlos' solution will work for the OP imho, I do not know if
    > the OP should not try to solve his problem by configuring in YaST.


    In OpenSuse 11.1 :

    1) On the Taskbar, select System

    2) Which brings up the drop menu for Lock Screen, about Gnome, System.

    3) On the second System drop menu select Sessions.

    4) Add instructions for Startup, I play a short login theme using mplayer.


    In OpenSuse 11.2

    Steps 1, 2 and 4 are the same.

    Step 3 is instead of Sessions its called "Startup Applications"




    --
    Chillingout@opensuse.forum

  10. #10
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,973

    Default Re: How to start a program at boot time?

    I see you are using Gnome for this. I am using KDE and do not have such a System thing in the Taskbar. As the OP has not stated she/he is using Gnome I am not sure this will help him/her. The more because she/he asks for something to be done during boot, which is way before anybody logs in and thus way before either KDE or Gnome (or any other desktop) is started.

    It is not even sure he/she uses a GUI in his/her system, because his question is valid even if the system runs in runlevel 3 only.
    Henk van Velden

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •