#1  
Old 31st December 2007, 19:41
tfunky tfunky is offline
Member
 
Join Date: Jan 2007
Posts: 85
Thanks: 4
Thanked 2 Times in 2 Posts
Default Start Openfire at boot?

Hi All!

I know this is a noob question, but I can't figure it out...

I've followed the openfire on Etch howto and have the server up and running if I manually start the service after a reboot.

How do I make the server start at boot?

The command to start the server is:
Code:
/opt/openfire/bin/openfire start
Can someone please tell me how to make it restart (on Etch) at boot?

Thanks!
Reply With Quote
Sponsored Links
  #2  
Old 1st January 2008, 15:58
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Isn't there an Openfire init script in /etc/init.d? What's the output of
Code:
ls -l /etc/init.d
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 1st January 2008, 19:09
tfunky tfunky is offline
Member
 
Join Date: Jan 2007
Posts: 85
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Code:
LOpenFire:~# ls -l /etc/init.d
total 194
-rwxr-xr-x 1 root root  1850 2006-01-14 06:12 acpid
-rwxr-xr-x 1 root root  4842 2007-09-19 15:45 apache2
-rwxr-xr-x 1 root root  5089 2006-09-20 07:33 bootclean
-rwxr-xr-x 1 root root  2146 2006-09-12 17:30 bootlogd
-rwxr-xr-x 1 root root  1915 2006-09-20 07:27 bootmisc.sh
-rwxr-xr-x 1 root root  2930 2006-09-14 04:20 checkfs.sh
-rwxr-xr-x 1 root root  9548 2006-09-23 03:34 checkroot.sh
-rwxr-xr-x 1 root root  6110 2006-09-05 12:15 console-screen.sh
-rwxr-xr-x 1 root root  1761 2006-10-12 14:55 cron
-rwxr-xr-x 1 root root  7104 2007-01-18 12:45 exim4
-rwxr-xr-x 1 root root  5823 2007-07-30 16:39 glibc.sh
-rwxr-xr-x 1 root root  1360 2007-01-13 13:52 halt
-rwxr-xr-x 1 root root  1287 2006-09-12 17:31 hostname.sh
-rwxr-xr-x 1 root root  3886 2007-02-21 12:48 hwclock.sh
-rwxr-xr-x 1 root root  2518 2006-09-15 14:03 ifupdown
-rwxr-xr-x 1 root root  1046 2006-09-15 14:03 ifupdown-clean
-rwxr-xr-x 1 root root  3484 2006-10-15 23:38 keymap.sh
-rwxr-xr-x 1 root root   944 2006-09-12 17:31 killprocs
-rwxr-xr-x 1 root root  1375 2006-05-25 05:38 klogd
-rwxr-xr-x 1 root root   417 2006-08-08 18:38 libdevmapper1.02
-rwxr-xr-x 1 root root  2358 2005-08-01 15:49 lvm
-rwxr-xr-x 1 root root  1054 2006-09-06 17:43 makedev
-rwxr-xr-x 1 root root  1793 2006-11-14 06:12 module-init-tools
-rwxr-xr-x 1 root root   617 2006-01-15 06:04 mountall-bootclean.sh
-rwxr-xr-x 1 root root  1718 2006-09-12 17:30 mountall.sh
-rwxr-xr-x 1 root root  2206 2006-10-03 14:22 mountdevsubfs.sh
-rwxr-xr-x 1 root root  2394 2006-09-25 04:36 mountkernfs.sh
-rwxr-xr-x 1 root root   615 2006-01-15 06:04 mountnfs-bootclean.sh
-rwxr-xr-x 1 root root  2299 2006-11-26 08:35 mountnfs.sh
-rwxr-xr-x 1 root root  3668 2006-11-26 10:13 mtab.sh
-rwxr-xr-x 1 root root  6127 2007-11-19 23:52 mysql
-rwxr-xr-x 1 root root  2547 2007-11-19 23:52 mysql-ndb
-rwxr-xr-x 1 root root  1931 2007-11-19 23:52 mysql-ndb-mgm
-rwxr-xr-x 1 root root  2550 2007-01-06 10:36 networking
-rwxr-xr-x 1 root root  2324 2007-02-25 15:29 openbsd-inetd
-rwxr-xr-x 1 root root   997 2006-09-12 21:42 procps.sh
-rwxr-xr-x 1 root root  8045 2006-11-27 17:23 rc
-rwxr-xr-x 1 root root   798 2006-09-28 13:25 rc.local
-rwxr-xr-x 1 root root   117 2005-12-02 12:44 rcS
-rw-r--r-- 1 root root  1386 2006-09-13 02:10 README
-rwxr-xr-x 1 root root   655 2006-09-22 10:21 reboot
-rwxr-xr-x 1 root root   994 2006-09-12 17:30 rmnologin
-rwxr-xr-x 1 root root  1376 2006-11-27 17:23 sendsigs
-rwxr-xr-x 1 root root   585 2006-09-12 17:32 single
-rw-r--r-- 1 root root  4187 2006-09-12 17:32 skeleton
-rwxr-xr-x 1 root root  1891 2007-03-05 11:38 ssh
-rwxr-xr-x 1 root root   520 2006-09-12 17:26 stop-bootlogd
-rwxr-xr-x 1 root root   730 2006-10-02 13:14 stop-bootlogd-single
-rwxr-xr-x 1 root root  2037 2006-05-25 05:38 sysklogd
-rwxr-xr-x 1 root root  8178 2006-12-19 05:21 udev
-rwxr-xr-x 1 root root  1252 2006-03-28 02:44 udev-mtab
-rwxr-xr-x 1 root root  3175 2006-11-25 04:22 umountfs
-rwxr-xr-x 1 root root  2128 2006-11-26 13:23 umountnfs.sh
-rwxr-xr-x 1 root root  1122 2006-09-30 10:37 umountroot
-rwxr-xr-x 1 root root  1815 2006-09-12 17:30 urandom
-r-xr-xr-x 1 root root 27730 2007-12-31 09:17 vmware-tools
-rwxr-xr-x 1 root root  1805 2007-02-13 05:02 x11-common
LOpenFire:~#
It's not there.

The howto had me copy everything to /opt.

I'm wondering if I need to copy the startup file to that init.d dir?
Reply With Quote
  #4  
Old 1st January 2008, 22:04
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Try this:
Code:
cp /opt/openfire/bin/openfire /etc/init.d
update-rc.d openfire defaults
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 1st January 2008, 22:33
tfunky tfunky is offline
Member
 
Join Date: Jan 2007
Posts: 85
Thanks: 4
Thanked 2 Times in 2 Posts
Default

I thought that would do it! That was what I was looking for thinking it would work.

Somethings still not right though...

if I do a
Code:
/etc/init.d/openfire start
I get a error:
Code:
The directory /etc/lib does not exist.
but if I do a search in the openfire file, it doesn't have a line with /etc/lib in it.

Any ideas?

Thanks!
Reply With Quote
  #6  
Old 2nd January 2008, 22:20
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Ok, try this:

Code:
rm -f /etc/init.d/openfire
vi /etc/init.d/openfire
Put this into the file:
Code:
#!/bin/bash
/opt/openfire/bin/openfire start
Afterwards make the file executable:
Code:
chmod 755 /etc/init.d/openfire
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
tfunky (3rd January 2008)
  #7  
Old 3rd January 2008, 02:34
tfunky tfunky is offline
Member
 
Join Date: Jan 2007
Posts: 85
Thanks: 4
Thanked 2 Times in 2 Posts
Talking

That worked!

That got it squared away like a charm!

If you don't mind me troubling you for a bit more info...

Do you have any idea why that worked and the

cp /opt/openfire/bin/openfire /etc/init.d
update-rc.d openfire defaults

didn't work?

I thought the way to do it was the update-rc.d part was the correct way to do it.

Do you know what would cause it not to work vs. the 2nd option where it did?

Thanks for your help Falko!!!!!!
Reply With Quote
  #8  
Old 3rd January 2008, 15:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

I guess the /opt/openfire/bin/openfire script is somehow looking for files in the current working directory (/opt/openfire/bin/); if the script is in /etc/init.d, that's not working because the directory has changed.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 4th January 2008, 16:15
tfunky tfunky is offline
Member
 
Join Date: Jan 2007
Posts: 85
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Interesting! I'll keep this in mind in the future!

Thanks for your help!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
"Too many open files in system" problems Berry Installation/Configuration 3 10th November 2007 21:58
dns server error Hellbound General 7 2nd August 2007 09:18
linux boot process sysconfig Server Operation 0 4th November 2006 09:58
Ispconfig doesn't start at boot? natewlew Installation/Configuration 2 25th June 2006 20:55
segmentation fault hotchilli Installation/Configuration 5 30th March 2006 22:29


All times are GMT +2. The time now is 05:59.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.