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

Thread: running application at boot

  1. #1

    Default running application at boot

    Howdy!

    I've just installed the HotForward .jar, which is a simple email forwarding program that runs in the system tray. To start the program from a terminal, I enter:

    /usr/local/vegaSTONE/HotForward/hotforward.sh

    But how do I get it to start at boot time?

    Thanks for your replies!

  2. #2
    ab@novell.com NNTP User

    Default Re: running application at boot

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    Assuming this will run without any kind of GUI you can link to your
    script from /etc/init.d and then use Yast to have it run at startup
    (Yast: System: System Services (Runlevel): set default runlevels of 3
    and 5) or you can manually add it with 'chkconfig <yourScriptfileName> on'.

    There is quite a bit of other information online on how to setup
    services in Linux and basically it boils down to something executable in
    /etc/init.d and something linking to it in
    /etc/init.d/rc<runlevelNumber>.d with S at the beginning (to start) and
    'K' at the beginning (to kill/stop).

    Good luck.





    Slipstream00 wrote:
    | Howdy!
    |
    | I've just installed the HotForward .jar, which is a simple email
    | forwarding program that runs in the system tray. To start the program
    | from a terminal, I enter:
    |
    | /usr/local/vegaSTONE/HotForward/hotforward.sh
    |
    | But how do I get it to start at boot time?
    |
    | Thanks for your replies!
    |
    |
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.4.2 (GNU/Linux)
    Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

    iD8DBQFIfsqb3s42bA80+9kRAoKRAJ9BpYth0dc01c28WISp1IuatsEuAQCeOK3f
    JPM/srxUksPJ6+Zi1xfLOlw=
    =YHRd
    -----END PGP SIGNATURE-----

  3. #3

    Default Re: running application at boot

    Thanks for your reply...

    (Yast: System: System Services (Runlevel): set default runlevels of 3
    and 5) or you can manually add it with 'chkconfig <yourScriptfileName> on'.
    I haven't tried chkconfig yet, but I found a post on using softlinks.
    Wine application starting at boot - openSUSE Forums

    I put one in rc3 and rc5. However, the application doesn't appear in the system tray at boot, but it appears after I open System Services (Runlevel) dialog and select the new HotForward service--I don't even need to Enable it, just selecting it seems to trigger the process.

    My System Services (Runlevel) dialog doesn't seem to have any functionality for adding services. Only Enable and Disable. There is ??? in the 'enabled' column, instead of a definitive 'yes' or 'no' like in the others.


    /etc/init.d and something linking to it in
    /etc/init.d/rc<runlevelNumber>.d with S at the beginning (to start) and
    'K' at the beginning (to kill/stop).
    Ok, maybe that's the problem. But where does the S and K go?

  4. #4
    Join Date
    Jan 2008
    Location
    Kenton, TN USA
    Posts
    1,023

    Default Re: running application at boot

    Thread moved to Install/Boot/Login
    opensuse.org.help.install-boot-login
    Last edited by kastorff; 17-Jul-2008 at 19:19.
    Keith Kastorff

  5. #5

    Default Re: running application at boot

    Yeah, I've googled the whole opensuse.org site and found nothing about adding system services and starting at boot. How bogus is that?

  6. #6
    Join Date
    Jun 2008
    Location
    Levin, New Zealand
    Posts
    227

    Default Re: running application at boot

    Do you want it at boot time or just to start when your desktop does?

    I know that if you are using kde you do that by creating a symbolic link in the /home/kde/autostart folder. To do that run in a terminal:

    ln -s /usr/local/vegaSTONE/HotForward/hotforward.sh ~/.kde/Autostart/hotforward

    P.S. For KDE4 the folder is .kde4

    I'm not sure how to do it in gnome but I think there is a control centre application for adding autostart programs?

    Hope that helps

  7. #7

    Default Re: running application at boot

    You can start it very easily at bootup, just add the terminal line you use to start the program in the file /etc/rc.d/boot.local

    Whatever you put in this file is executed right after the kernel initialization and just before entering runlevel 1.

    I use the same file to change some settings to my TT1 console and to put graphical splash screens to all my terminals from 1 to 6 depending on the resolution by simply calling another terminal script.

  8. #8

    Default Re: running application at boot

    LRE and dunnfamily, thanks for the replies! I didn't know about the kde start folder or boot.local. That's good info.

    However, now that I think about it some more, using boot.local might launch it too soon since I wouldn't want it running in run level 1.

    I'd probably want the application to start in run level 3. That way, it would launch without kde. What's the best way to configure it?

    Thanks!

  9. #9
    Join Date
    Jun 2008
    Location
    Earth - Denmark
    Posts
    10,730

    Default Re: running application at boot

    > Yeah, I've googled the whole opensuse.org site and found nothing about
    > adding system services. How bogus is that?


    which system service(s) do you want to run that is(are) not in YaST?

    depending on what you want, you can go (in 10.3, i don't know about 11.0):

    YaST > System > System Services

    OR

    YaST > Network Services > pick from right

    AND/OR

    YaST > System > etc/sysconfig Editor > USE CARE


    --
    DenverD (Linux Counter 282315)
    A Texan in Denmark

  10. #10
    Join Date
    Jun 2008
    Location
    Omaha, NE
    Posts
    526

    Default Re: running application at boot

    Quote Originally Posted by dunnfamily View Post
    Do you want it at boot time or just to start when your desktop does?

    I know that if you are using kde you do that by creating a symbolic link in the /home/kde/autostart folder. To do that run in a terminal:

    ln -s /usr/local/vegaSTONE/HotForward/hotforward.sh ~/.kde/Autostart/hotforward

    P.S. For KDE4 the folder is .kde4

    I'm not sure how to do it in gnome but I think there is a control centre application for adding autostart programs?

    Hope that helps
    That is what I'd do. Just link the app to Autostart.

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
  •