Sebastian’s blog

Sebastian’s blog

Sebastian’s blog RSS Feed
 
 
 
 

HowTo: Install OpenGroupware.org on Ubuntu 8.04 amd64 server with LDAP support (part 4 of 4)

We got the core OpenGroupware application.
We got a database backend (PostgreSQL).
We got centralized user management (LDAP).

Now it’s time to finish it all with a basic startup script for ogo.

Open up an editor:

sudo nano /etc/init.d/ogo

And put in the following:

#!/bin/bash

APP=ogo-webui-1.1
PIDFILE=/var/run/ogo

case “${1:-”}” in
’start’)
su -c “source /usr/GNUstep/System/Library/Makefiles/GNUstep.sh && $APP” ogo >>/var/log/ogo/stdout 2>>/var/log/ogo/stderr &
echo $! > $PIDFILE
;;
’stop’)
cat $PIDFILE | xargs kill
;;
‘restart’)
/etc/init.d/ogo stop
/etc/init.d/ogo start
;;
*)      # no parameter specified
echo “Usage: $SELF start|stop|restart|reload|force-reload|status”
exit 1
;;
esac

(This is probably not the best startup script, but I have really no experience with this, and it does the job.)

You also need to create a directory for log files:

sudo mkdir /var/log/ogo

The init script will write stdout and stderr of the ogo webui process to appropriately named files.

Time to add the init script to the boot process:

sudo update-rc.d ogo defaults

Now it will start automatically on boot and stop on shutdown. :)

And that’s it for this HowTo series. If You have any questions, don’t hesitate to comment! Thanks for reading! :-)

3 Responses to “HowTo: Install OpenGroupware.org on Ubuntu 8.04 amd64 server with LDAP support (part 4 of 4)”

  1. 1
    HowTo: Install OpenGroupware.org on Ubuntu 8.04 amd64 server with LDAP support (part 1 of 4) « Sebastian’s blog:

    [...] Fourth part: Finish [...]

  2. 2
    HowTo: Install OpenGroupware.org on Ubuntu 8.04 amd64 server with LDAP support (part 2 of 4) « Sebastian’s blog:

    [...] Fourth part: Finish [...]

  3. 3
    Cam T:

    Anybody gotten and DAV working with this (great tutorial, BTW)? I’m working on getting email integrated too, but I’m thinking about client access through webDAV.

    Also I’m having issues with the boot process, really the only problem I’m having.

Leave a Reply

Recent Posts

Categories

Archives

Recent Posts

Twitter

Blogs

Friends

FeedCount

Last.fm weekly artists

Meta

License

Creative Commons License
This work (text, author's own images) is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License.