[may-be-spam] RE: Starting applications at boot

sktsee sktsee at tulsaconnect.com
Thu Jun 7 14:58:19 UTC 2007


On Thu, 2007-06-07 at 08:32 -0400, Jan Sneep wrote:

[snip]

> I read the man page (took me a while to figure out that one uses the
> enter-key to scroll down the pages and the q-key to quit ... just shows you
> how much I have to learn ...) and then based on what it said decided to use
> one of the examples and so typed;
> 
> update-rc.d open-xchange-groupware start 30 2 3 4 5 . stop 70 0 1 6 .
> 
> Which worked beautifully, well at least there are S30open-xchange-groupware
> files in the /etc/rc2.d through to the /etc/rc5.d folders and
> K70open-xchange-groupware files in the /etc/rc0.d, rc1.d, and rc6.d folders.
> 
> However, when I re-booted, first just a restart and then when that didn't
> appear to work a cold-boot shutdown and start. I open a terminal window and
> check the status and it shows "not running" and yet I can start & stop it
> manually with out any problem. Now I did get an interesting response when I
> forgot to run the script as SU, which got me to thinking there must be a log
> file of some kind that is created during start-up that I can look at to see
> if the system actually attempts to start the service and any errors that are
> produced?
> 
> 

Try checking in /var/log/syslog or /var/log/messages to see if there are
lines pertaining to open-xchange-groupware that appear with other boot
messages. There might be some error messages that point to what's wrong.

> jan at ubuntu:~$ /etc/init.d/open-xchange-groupware status
> /etc/init.d/open-xchange-groupware: line 34: ulimit: open files: cannot
> modify limit: Operation not permitted
> jan at ubuntu:~$ sudo su
> Password:
> root at ubuntu:/home/jan# /etc/init.d/open-xchange-groupware status
> Checking for Open-Xchange Groupware: not running
> root at ubuntu:/home/jan# /etc/init.d/open-xchange-groupware start
> Starting Open-Xchange Groupware: open-xchange-groupware.
> root at ubuntu:/home/jan#
> 
> I also notice that if I start the service in a terminal window and then I
> close that window and open another the service has stopped and I need to
> start it again. Which got me thinking that as the script is from the
> open-xchange folks that perhaps it has some un-Ubuntu "stuff" in it that
> might be causing it to not start properly? I have attached a copy in case
> anyone can spot something that is a no-no.
> 

I didn't see any problems that stands out with the script. It's simple
enough, plus the fact that you can manually start the service would
indicated that it works, although it's odd that it won't run as a proper
daemon. Try doublechecking the file paths and some of the files
referenced in the script like etc/default/open-xchange-groupware. It
could be something as simple as setting "Enable=1" in that file. Check
any other associated conf files as well. 

Also check the shell scripts oxfunctions.sh and ox-scriptconf.sh
and /opt/open-xchange/sbin/open-xchange-groupware.  Any paths referenced
in those scripts should be verified to match your system. 

Lastly, you might leave a post on open-xchange's web forum:
http://typo3.open-xchange.com/forum/index.php I just a quick perusal of
some messages and there could be some issues with permissions not being
correctly set by the installer so that could be avenue to explore.

-- 
sktsee






More information about the ubuntu-users mailing list