Menu

running jetrix at startup on FC4

FyreStorm
2005-10-10
2012-09-16
  • FyreStorm

    FyreStorm - 2005-10-10

    this may just be a dumb newb linux deal, but...

    if I'm logged in with my standard user account, go to the jetrix directory and run ./jetrix, all works fine.
    if I go to any other directory and run /pathtojetrix/jetrix, I get:
    Failed to load Main-Class manifest attribute from lib/jetrix-launcher-0.2.2.jar
    if I run java -jar /pathtojetrix/lib/jetrix-launcher-0.2.2.jar, I get a whole SLEW of java errors, starting with: Exception in thread "main" java.lang.NoClassDefFoundError: while resolving class: net.jetrix.Launcher

    basically, what I wanna do is put jetrix in my /etc/rc.local file so it starts when the machine reboots, buuuuut maybe I'm just not sure as to how I should be running the commandline to do so?

    Anyone mind giving a pointer?

     
    • FyreStorm

      FyreStorm - 2005-10-10

      Thanks for the response!

      I edited my /etc/rc.local file, and at the end I placed two lines:

      cd /pathtojet/jetrix
      ./jetrix

      Upon rebooting my system, Jetrix still does not run. Am I missing something in how to add this to /etc/rc.local?

       
      • Emmanuel Bourg

        Emmanuel Bourg - 2005-10-10

        Did you get the same error or something different ?

         
        • FyreStorm

          FyreStorm - 2005-10-10

          I'm really not sure where to check for an error for where things run when you put them in /etc/rc.local. All I know is that the Jetrix server does not start with the system boots. I'm sure this is more a matter of how to set this up on a Linux machine as opposed to a Win machine, I'm just not sure of how to do this, and googling for the info hasn't provided much help so far for this situation, where you have to be in the working directory to run the program

           
          • Emmanuel Bourg

            Emmanuel Bourg - 2005-10-10

            Maybe the jetrix started but stopped due to another issue, in this case you might check the log file in the /log directory under the jetrix installation directory.

            Something you might try is the "screen" utility. Instead of starting the server with "./jetrix", try "screen ./jetrix". I use this to run jetrix as a deamon, the usual "nohup ./jetrix &" doesn't seem to work well.

             
    • FyreStorm

      FyreStorm - 2005-10-10

      Ok, end of /etc/rc.local now looks like this:

      cd /stuff/jetrix
      screen ./jetrix


      now, when I boot up I see where the jetrix command is initiated, and I see a lot of the information like what I'd see if I ran it manually, but then it says "terminating" and I get to my fedora login prompt. I look in the /jetrix/log directory, but there are no log files there (I cleared them before rebooting). Obviously the process started since I visibly saw it running for a moment, but as I said there are no log files.
      At the moment I'm trying to figure out how to make sure fedora boot logs are enabled (to no avail..), since my /var/log/boot.log files are 0kb and empty.

      I'll post a boot log soon as I figure that out

       
      • Emmanuel Bourg

        Emmanuel Bourg - 2005-10-12

        Try this, it's more likely to work :

        cd /stuff/jetrix
        screen -d -m ./jetrix

         
        • FyreStorm

          FyreStorm - 2005-10-14

          P.S. - If I log into my user account, open a terminal session and run "screen -d -m ./jetrix" from my jetrix directory, the server runs properly and I can close the terminal and log back out, with the Jetrix server continuing to function

           
        • FyreStorm

          FyreStorm - 2005-10-14

          I entered those two lines exactly as shown in /etc/rc.local, yet still once the system starts up and is running, I cannot login to Jetrix. If I log into the system and look, the java process is not running. If I manually run Jetrix from that point, everything works fine.
          Still trying to figure out why my boot.log files are empty, can't seem to determine where you turn that on if it is indeed turned off. I've gotten caught up with some other things, so I just haven't been able to look into it yet. Soon as I do I'll post some boot information, maybe that will help!

           
    • Emmanuel Bourg

      Emmanuel Bourg - 2005-10-10

      Hi, to run Jetrix the working directory must be the installation directory (that's /pathtojetrix). Adding "cd /pathtojetrix" in your startup script should fix this issue.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.