Abyss as a service on Kubuntu Linux

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


Joined: 06 Oct 2005
Posts: 6

PostPosted: Sat Dec 23, 2006 6:50 pm    Post subject: Abyss as a service on Kubuntu Linux Reply with quote

I installed Abyss 2.3.2 on Kubuntu 6.10 Edgy Eft, and had no problems. But what I want to do now is install Abyss as a service to start automatically at boot. Does anybody know how to do this?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sun Dec 24, 2006 1:31 pm    Post subject: Re: Abyss as a service on Kubuntu Linux Reply with quote

jaygajay,

Setting Abyss Web Server in the startup sequence of your operating system depends on the distribution you are using. Here are the instructions for Ubuntu/Debian (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
#
### 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

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

# EOF


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

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


* Run the update-rc.d command to have the necessary links created in the rcX.d directories:

Code:
update-rc.d abyssws defaults


* 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:
update-rc.d -f abyssws remove

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


Joined: 06 Oct 2005
Posts: 6

PostPosted: Thu Dec 28, 2006 1:12 am    Post subject: Re: Abyss as a service on Kubuntu Linux Reply with quote

aprelium wrote:


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

Code:
/etc/init.d/abyssws start




When I do that I get:

Code:
Starting Abyss Web Server daemon: /etc/init.d/abyssws: 52: startproc: not found

/etc/init.d/abyssws: 52: rc_status: not found


And yes. ABYSSWS_HOME is set to my right installation directory.
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Thu Dec 28, 2006 1:06 pm    Post subject: Re: Abyss as a service on Kubuntu Linux Reply with quote

jaygajay,

Sorry, there were some errors in the file (it has been adapted from another Linux distribution).

Here is the updated code:

Code:

#! /bin/sh
#
### 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

RETVAL=0

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

# EOF

_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
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