Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    how to xhost +localhost from startup script?


    I have a graphing application called jfreechart running under tomcat 5.57.


    For the application to produce the graphs , i have to do a xhost +localhost and then start tomcat with the script.

    I want Tomcat to start when the machine boots, so I wrote a script that call s jsvc, and placed it in /etc/rc.d/init.d and made the links from rc5.d to init.d

    The script runs fine if i call it from a terminal window, however it refuses to xhost +localhost when it boots or when called via "service xxxx start"

    Any ideas on how to solve this problem? Currently I have to log in, xhost manually, then run the service and lock the window.

  2. #2
    No one????

  3. #3
    I realize it's been a long time. Any luck with this issue?

    bobdoj

  4. $spacer_open
    $spacer_close

Posting Permissions

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