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?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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?
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?
Did you get the same error or something different ?
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
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.
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
Try this, it's more likely to work :
cd /stuff/jetrix
screen -d -m ./jetrix
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
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!
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.