Results 1 to 8 of 8

Thread: To run automatically at boot time on SuSE 10.1

  1. #1
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question To run automatically at boot time on SuSE 10.1

    I use SuSE 10.1
    I want an application called “backlight” to run automatically at boot time.
    I put this “backlight” in the directory of /etc/init.d, and then add “/etc/init.d/backlight” into the file of /etc/init.d/boot.local

    However, I fail to it to run at boot time.
    How can I achieve this?

    Thank you for your help.

    Rüd

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: To run automatically at boot time on SuSE 10.1

    Add it to /etc/rc.local. Remember to detach it from shell (using an ampersand) if it doesn't to that by itself.

  3. #3
    Join Date
    Jul 2006
    Posts
    79
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: To run automatically at boot time on SuSE 10.1

    Have you used "./backlight" or "backlight"? Don't know if there is a difference in boot.local, but in the bash there is one..
    Try to add it into an existing script like random.
    And maybe it is sufficient to put the program into the autostart folder (/home/username/.kde/Autostart/ )
    You can use the sample script (/etc/init.d/skeleton.compat) to make an init script and then add it with yast. That would be the most elegant solution.

    edit:
    @wysota
    It doesn't exist on a suse 10.1. Is it possible to create it? (I had a similar problem)

  4. The following user says thank you to aMan for this useful post:

    rud_1023 (27th October 2006)

  5. #4
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question Re: To run automatically at boot time on SuSE 10.1

    Application CANNOT run automatically when entering level 5 on SuSE 10.1

    This “backlight” is an executable application, I add the string of “/etc/init.d/backlight” into the file of “/etc/init.d/random”.

    With chkconfig –l random, it shows
    Random 0 : off 1 : off 2 : on 3 : on 4 : off 5 : on 6 : off

    I put the application “backlight” into the directory of “/root/Desktop”, this application will appear on the desktop after entering level 5.

    This application still does not run automatically after entering level 5.

    Thank you for your help.

    Rud

  6. #5
    Join Date
    Jul 2006
    Posts
    79
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: To run automatically at boot time on SuSE 10.1

    Can you show, how you've added it to the random script?

  7. #6
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: To run automatically at boot time on SuSE 10.1

    Quote Originally Posted by aMan View Post
    @wysota
    It doesn't exist on a suse 10.1. Is it possible to create it? (I had a similar problem)
    AFAIK rc.local is a standard script run after all other rc scripts so it should work. Of course there are no guarantees But even if it doesn't you can add a line to (I think) inittab and it'll run it for you.

    @rud_1023: Could you tell us, what exactly do you want to achieve? Do you want it to be run at boot time, at the time your Xserver starts or at the time a user logs into the Xserver?

  8. The following user says thank you to wysota for this useful post:

    rud_1023 (30th October 2006)

  9. #7
    Join Date
    Oct 2006
    Posts
    6
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11

    Smile Re: To run automatically at boot time on SuSE 10.1

    I use SuSE 10.1, KDE 3.5.1

    I want to run this application at the time a user logs into the Xserver.

    I have just added this line “/etc/init.d/backlight” into random script, it CANNOT work.

    I put this application into the directory ~/.kde/Autostart.
    This application will run automatically at the time a user logs into the Xserver.

    Thank you for your help.

    Rüd

  10. #8
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: To run automatically at boot time on SuSE 10.1

    Quote Originally Posted by rud_1023 View Post
    I have just added this line “/etc/init.d/backlight” into random script, it CANNOT work.
    It can't work because there is no X server running yet so the application fails. You have simply asked a wrong question in the first place So you got correct answers, but not for a question you wanted answered.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.