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/ogocase “${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! ![]()



October 28th, 2008 at 16:32
[...] Fourth part: Finish [...]
October 28th, 2008 at 16:33
[...] Fourth part: Finish [...]
November 8th, 2008 at 4:25
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.