Find the answer to your Linux question:
Results 1 to 6 of 6
Hi guys, I need to create a start up service for x11vnc so the terminal doesn't have to be open all the time, otherwise users will have to go to ...
  1. #1
    Just Joined!
    Join Date
    Aug 2007
    Location
    Suffolk
    Posts
    21

    Question Creating start up services?

    Hi guys,

    I need to create a start up service for x11vnc so the terminal doesn't have to be open all the time, otherwise users will have to go to the server open the GNOME terminal and type 'ASTPBX-FAILOVER# x11vnc -display :0'.

    If anyone knows the answer that would be great if you could let me know

    The server is using SuSe 10.5.

    Thanks,

    Alex

  2. #2
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You can add a service using the chkconfig command. Remember though that an application running as a service will run as root - if you want to avoid security problems and ensure that the user can talk to the service you might be better putting it in their startup script. Check either /etc/profile or ~/.bashrc

  3. #3
    Just Joined!
    Join Date
    Aug 2007
    Location
    Suffolk
    Posts
    21
    Quote Originally Posted by bigtomrodney View Post
    You can add a service using the chkconfig command. Remember though that an application running as a service will run as root - if you want to avoid security problems and ensure that the user can talk to the service you might be better putting it in their startup script. Check either /etc/profile or ~/.bashrc
    Thanks for the quick reply BigTomRodney, the only account used on this server is root (as its only a few System engineers that will use it).

    I will post back later to let you know if this has work

  4. #4
    Just Joined!
    Join Date
    Aug 2007
    Location
    Suffolk
    Posts
    21

    Question

    I've used that command just as:

    # chkconfig

    And it has displayed a long list of programs/services? And if they are on or off, so I'm not to sure what I am doing!

    Help BigTomRodney!

  5. #5
    Linux Guru
    Join Date
    Nov 2004
    Posts
    6,110
    You need to add a switch to do it -
    Code:
    chkconfig --add servicename
    You can check the syntax using man chkconfig

  6. #6
    Just Joined!
    Join Date
    Aug 2007
    Location
    Suffolk
    Posts
    21
    Hi again,

    When I try and start the x11vnc program as a service it just says unknown service?

    Thanks,

Posting Permissions

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