SUSE Linux & Abyss As Service

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
UtahLugers
-


Joined: 13 Jan 2005
Posts: 7
Location: USA

PostPosted: Tue Oct 10, 2006 3:01 am    Post subject: SUSE Linux & Abyss As Service Reply with quote

Has anyone been able to get abyss running as a service on SUSE Linux? I found one post where I guy said he got it going but when someone asked if he could share what he did, there was no reply.

So, have you got it working in the init.d, rc.d, or whatever method to start it in a runlevel?
_________________
This is me....I don't want to be like you.
Back to top View user's profile Send private message Visit poster's website AIM Address MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Tue Oct 10, 2006 12:05 pm    Post subject: Re: SUSE Linux & Abyss As Service Reply with quote

UtahLugers,

Setting Abyss Web Server in the startup sequence of your operating system depends on the distribution you are using. Here are the instructions for Suse (but we have not tested them, so your feedback is welcome):

* Log in to your root account

* Create a text file called /etc/init.d/abyssws and copy the following in it (do not forget to update the value of ABYSSWS_HOME in the script):

Code:

#! /bin/sh
#
# /etc/init.d/dsmcad
#
### BEGIN INIT INFO
# Provides: abyssws
# Required-Start:
# Should-Start:
# Required-Stop:
# Should-Stop:
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: abyssws (Abyss Web Server)
# Description: Start Abyss Web Server HTTP service
### END INIT INFO

#SET THE FOLLOWING LINE TO YOUR Abyss Web Server INSTALLATION DIRECTORY

export ABYSSWS_HOME=/home/john/abyssws

#Source function library.
. /etc/rc.status

# Reset status of this service
rc_reset

RETVAL=0

# See how we were called.
case "$1" in
   start)
         cd $ABYSSWS_HOME
         echo -n "Starting Abyss Web Server daemon: "
         startproc $ABYSSWS_HOME/abyssws -d
         RETVAL=$?
         echo
         [ $RETVAL -eq 0 ] && touch /var/lock/subsys/abyssws
         rc_status -v
         ;;
   stop)
         echo -n "Stopping Abyss Web Server daemon: "
         $ABYSSWS_HOME/abyssws --stop
         RETVAL=$?
         echo
         [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/abyssws
         rc_status -v
         ;;
   restart)
         echo -n "Restarting Abyss Web Server daemon: "
         $ABYSSWS_HOME/abyssws --restart
         RETVAL=$?
         echo
         rc_status
         ;;
   *)
         echo "Usage: $0 {start|stop|restart}"
         exit 1
         ;;
esac

rc_exit

# EOF


* Setup permissions to execute for /etc/init.d/abyssws by executing:

Code:
chmod 744 /etc/init.d/abyssws


* Run the insserv command to have the necessary links created in the rcX.d directories:

Code:
/sbin/insserv /etc/init.d/abyssws


* Test that everything is running fine by starting abyssws manually from the initd system:

Code:
/etc/init.d/abyssws start


* To stop it, run:

Code:
/etc/init.d/abyssws stop


* From now on, when you boot your computer, abyssws will be launched automatically.

* If you ever want to remove abyssws from the startup sequence, run:

Code:
/sbin/insserv -r /etc/init.d/abyssws

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
UtahLugers
-


Joined: 13 Jan 2005
Posts: 7
Location: USA

PostPosted: Thu Oct 12, 2006 6:37 am    Post subject: Reply with quote

YEAH YEAH YEAH !!!!!!!!!!!!!!!!!!!!!!!

It works!!!!!

Thank you very much!!!!!!
_________________
This is me....I don't want to be like you.
Back to top View user's profile Send private message Visit poster's website AIM Address MSN Messenger
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Oct 12, 2006 9:14 am    Post subject: Reply with quote

UtahLugers,

You're welcome.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
UtahLugers
-


Joined: 13 Jan 2005
Posts: 7
Location: USA

PostPosted: Thu Oct 12, 2006 6:10 pm    Post subject: Reply with quote

For anyone searching for information about this here is what I did:


:arrow: Unpacked the files and then put them into your home directory, or the directory of the user to add them to. You may want to create a user like abyssws or server or something so you are not messing up that account if something goes wrong.
:arrow: Open up a terminal and make sure that everything is working by going to the abyss directory and typing in ./abyssws
:arrow: ex: /home/server/bin/abyss/./abyssws
:arrow: --You may get a listening error here about it not working on port 80, its ok, we will get to that later
:arrow: Open a browser and type in: http://127.0.0.1:9999
:arrow: Put in your registration info for X2 or your user/pass for X1
:arrow: --Again, the WebGUI may give you a listening error but we are getting to it.
:arrow: Open a terminal and type in 'su' (or sudo if you wish)
:arrow: Then type in 'yast' (You can use the graphical if you wish, but it is best to be familiar with command line anyway)
:arrow: Navigate to the firewall and open port 80
:arrow: --Yeah, now you shouldn't get the listening error AFTER the NEXT step

:arrow: -----------------FOLLOW THE INSTRUCTIONS FROM THE ABYSS STAFF FROM ABOVE-----------------

:arrow: At this point I recommend restarting the computer so the O.S. sees everything fresh. You don't need to but I recommend it.

:arrow: YEAH! Your done! Now you can get configuring your server and it will start at runlevel 3 & 5!!


Something I missed? PLEASE let me know. Thanks!
_________________
This is me....I don't want to be like you.
Back to top View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
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 phpBB Group