hiteksoftware.com Forum Index hiteksoftware.com
User discussion forum
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to run JaSFtp as a Service on Linux?

 
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Platform specific issues
View previous topic :: View next topic  
Author Message
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Thu Jul 20, 2006 1:15 pm    Post subject: How to run JaSFtp as a Service on Linux? Reply with quote

How to automate the run of JaSFtp on Linux after rebooting the server?
(Posted originally by Mshamsan)


Last edited by melvin on Thu Jul 27, 2006 8:27 am; edited 1 time in total
Back to top
View user's profile Send private message Send e-mail
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Thu Jul 20, 2006 1:26 pm    Post subject: Reply with quote

This is a very good question. This answer applies to Version 8.x-9.x only.

The software consists of the user interface and an Engine which runs tasks and schedules. You should setup the Engine to start during reboot.

This procedure is detailed and tested for RedHat Linux. The procedure will be similar, but may not be exactly the same on your unix system:
1) login as root and backup the following file:
/etc/rc.d/rc.local

2) Edit the file rc.local and add the following lines to the end of the file:
cd /../../hitek9 (i.e. Automize or JaSFtp folder)
jre/bin/java -Xrs -cp .:help:jh.jar:mail.jar:activation.jar:net.jar:jakoro.jar:maverick-all.jar:sinetfactory.jar:bsh.jar:hitek9.jar com.hitek.engine.Engine &

OR: if you installed the java machine separately, use
java -Xrs -cp .:help:jh.jar:mail.jar:activation.jar:net.jar:jakoro.jar:maverick-all.jar:sinetfactory.jar:bsh.jar:hitek9.jar com.hitek.engine.Engine &

3) Save the file.

4) IMPORTANT: First run a test script file containing the above 2 lines of code manually from the command line. Confirm that the engine starts running.

5) VERY IMPORTANT: Also, ensure that the command prompt is returned. The & at the end of the launch command makes sure that the scheduler engine runs in the background. This makes sure that your system will not hang on startup waiting for scheduler engine to return.


Last edited by melvin on Thu Apr 14, 2011 10:23 pm; edited 2 times in total
Back to top
View user's profile Send private message Send e-mail
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Thu Jul 20, 2006 2:05 pm    Post subject: Reply with quote

I guess that you do not see the process as a normal user is because the engine is started as root. While logged on as normal user, do you have any problems adding or deleting tasks or running tasks etc..? I do not remember having any problems or any users reporting problems while doing this?
Back to top
View user's profile Send private message Send e-mail
melvin
Site Admin


Joined: 25 May 2006
Posts: 635
Location: Santa Barbara, california

PostPosted: Fri Jul 28, 2006 5:09 pm    Post subject: Reply with quote

Forgot something: to prevent the engine from shutting down when you logoff, you should add the -Xrs switch:

java -Xrs -cp .:help:jh.jar:mail.jar:activation.jar:net.jar:jakoro.jar:maverick-all.jar:sinetfactory.jar:bsh.jar:hitek9.jar com.hitek.engine.Engine &
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    hiteksoftware.com Forum Index -> Platform specific issues All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group