Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 29th June 2007, 12:56
royrobinson royrobinson is offline
Junior Member
 
Join Date: Oct 2006
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
Default Auto Start ISPConfig

Hi Guys

I am new to the forums so please be gentle. I had installed ISPConfig 2.2.11, I upgraded to 2.2.14 all seems ok, apart from the fact that whenever I reboot the server now, ISPConfig does not automatically start and I have to login into a shell and kickstart it with:

etc/init.d/ispconfig_server start

Then after that its fine I can log into:

https://www.xyz.tld:81

Any help would be appreciated, as I have searched the forum yet come up with nothing. Maybe I am searching the wrong keywords.

Thanks for the UK.

Roy.
Reply With Quote
Sponsored Links
  #2  
Old 29th June 2007, 15:08
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

is there a link in the /etc/rc3.d/ linking to /etc/init.d/ispconfig_server,
e.g.
S99ispconfig_server
if not create one, except your default runlevel is not 3, then you have to take a look in the according dir /etc/rc[yourrunlevelnr].d/
The link can be created like this:

[quote]
ln -s /etc/init.d/ispconfig_server /etc/rc3.d/S99ispconfig_server
[/qoute]
Reply With Quote
  #3  
Old 29th June 2007, 16:13
royrobinson royrobinson is offline
Junior Member
 
Join Date: Oct 2006
Posts: 13
Thanks: 5
Thanked 0 Times in 0 Posts
Default

Hi Ben

Thanks for your suggestion. My server is running at runlevel 2, therefore I check /etc/dir/rc2.d/S99ispconfig_server as shown below:

root@server0001:/etc/rc2.d# cat S99ispconfig_server
#!/bin/bash
################################################## #############################
# Copyright (c) 2005, projektfarm Gmbh, Till Brehm, Falko Timme
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without modification,
# are permitted provided that the following conditions are met:
#
# * Redistributions of source code must retain the above copyright notice,
# this list of conditions and the following disclaimer.
# * Redistributions in binary form must reproduce the above copyright notice,
# this list of conditions and the following disclaimer in the documentation
# and/or other materials provided with the distribution.
# * Neither the name of ISPConfig nor the names of its contributors
# may be used to endorse or promote products derived from this software without
# specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
# IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
# BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
# OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
# EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
################################################## #############################

###################################
#
# ISPConfig Server-Startscript
#
###################################

TMPDIR=/tmp
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin

case "$1" in
start)
echo "Starting ISPConfig system..."
/etc/init.d/mysqld start &> /dev/null
/etc/init.d/mysql start &> /dev/null
sleep 3
/root/ispconfig/httpd/bin/apachectl startssl
/root/ispconfig/sv/ispconfig_wconf &> /dev/null &
/root/ispconfig/php/php -q /root/ispconfig/scripts/shell/firewall.php
if ps ax | grep -iw '/home/admispconfig/ispconfig/tools/clamav/bin/freshclam' | grep -iv 'grep' &> /dev/null ;then
echo "FreshClam is already running!"
else
/home/admispconfig/ispconfig/tools/clamav/bin/freshclam -d -c 10 --datadir=/home/admispconfig/ispconfig/tools/clamav/share/clamav
fi
echo "ISPConfig system is now up and running!"
;;
stop)
echo "Shutting down ISPConfig system..."
array=(`ps ax | grep -iw '/root/ispconfig/sv/ispconfig_wconf' | grep -iv 'grep' | awk '{print $1}' | cut -f1 -d/ | tr '\n' ' '`)
element_count=${#array[@]}
index=0
while [ "$index" -lt "$element_count" ]
do
kill -9 ${array[$index]}
let "index = $index + 1"
done
/root/ispconfig/httpd/bin/apachectl stop
array=(`ps ax | grep -iw '/home/admispconfig/ispconfig/tools/clamav/bin/freshclam' | grep -iv 'grep' | awk '{print $1}' | cut -f1 -d/ | tr '\n' ' '`)
element_count=${#array[@]}
index=0
while [ "$index" -lt "$element_count" ]
do
kill -9 ${array[$index]}
let "index = $index + 1"
done
echo "ISPConfig system stopped!"
;;
restart)
$0 stop && sleep 3
$0 start
# Remember status and be quiet
;;
*)
echo "Usage: $0 {start|stop|restart}"
exit 1
esac
exit 0root@server0001:/etc/rc2.d#

I did not know the exact syntax to check whether there was a link, so I ran the following line:

ln -s /etc/init.d/ispconfig_server /etc/rc2.d/S99ispconfig_server

And got the following. Please advise as I am somewhat puzzled, thanks.

root@server0001:/etc/rc2.d# ln -s /etc/init.d/ispconfig_server /etc/rc2.d/S99ispconfig_server
ln: creating symbolic link `/etc/rc2.d/S99ispconfig_server' to `/etc/init.d/ispconfig_server': File exists


My OS is Ubuntu 6.10 for reference.

All help appreciated.

Roy.
Reply With Quote
  #4  
Old 30th June 2007, 16:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Can you try
Code:
update-rc.d ispconfig_server 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 6th April 2011, 01:36
iceget iceget is offline
Member
 
Join Date: Feb 2008
Posts: 76
Thanks: 2
Thanked 0 Times in 0 Posts
Default Re

Hello Falko,

i have installed ispconfig 2.2.38 and all works fine!

but only the autostart of the ispconfig system doesnt works!

on every reboot i must start ispconfig manually with /etc/init.d/ispconfig_server start

i have tried to add to the autostart (runlevel):
root@server:/etc/init.d# update-rc.d ispconfig_server defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'S99ispconfig_server' missing LSB tags and overrides
insserv: warning: script 'ispconfig_server' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (2 3 5) of script `ispconfig_server' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (empty) of script `ispconfig_server' overwrites defaults (0 1 6).
insserv: warning: script 'bastille-firewall' missing LSB tags and overrides
insserv: There is a loop at service rmnologin if started
insserv: There is a loop between service rmnologin and mountnfs if started
insserv: loop involving service mountnfs at depth 6
insserv: loop involving service nfs-common at depth 5
insserv: There is a loop between service rmnologin and checkroot if started
insserv: loop involving service checkroot at depth 3
insserv: loop involving service keyboard-setup at depth 2
insserv: loop involving service quota at depth 8
insserv: loop involving service hwclock at depth 5
insserv: loop involving service hwclockfirst at depth 3
insserv: loop involving service hostname at depth 4
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!

can you help me?

thanks!

kind regards
--
markus
Reply With Quote
  #6  
Old 6th April 2011, 05:02
iceget iceget is offline
Member
 
Join Date: Feb 2008
Posts: 76
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by iceget View Post
Hello Falko,

i have installed ispconfig 2.2.38 and all works fine!

but only the autostart of the ispconfig system doesnt works!

on every reboot i must start ispconfig manually with /etc/init.d/ispconfig_server start

i have tried to add to the autostart (runlevel):
root@server:/etc/init.d# update-rc.d ispconfig_server defaults
update-rc.d: using dependency based boot sequencing
insserv: warning: script 'S99ispconfig_server' missing LSB tags and overrides
insserv: warning: script 'ispconfig_server' missing LSB tags and overrides
insserv: warning: current start runlevel(s) (2 3 5) of script `ispconfig_server' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (empty) of script `ispconfig_server' overwrites defaults (0 1 6).
insserv: warning: script 'bastille-firewall' missing LSB tags and overrides
insserv: There is a loop at service rmnologin if started
insserv: There is a loop between service rmnologin and mountnfs if started
insserv: loop involving service mountnfs at depth 6
insserv: loop involving service nfs-common at depth 5
insserv: There is a loop between service rmnologin and checkroot if started
insserv: loop involving service checkroot at depth 3
insserv: loop involving service keyboard-setup at depth 2
insserv: loop involving service quota at depth 8
insserv: loop involving service hwclock at depth 5
insserv: loop involving service hwclockfirst at depth 3
insserv: loop involving service hostname at depth 4
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!

can you help me?

thanks!

kind regards
--
markus
hello!

i want to install fail2ban or midnight commander, the same failuers :
facility `$all' which can not be true!
insserv: loop involving service mountnfs-bootclean at depth 3
insserv: loop involving service mountall-bootclean at depth 1
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: exiting now without changing boot order!
update-rc.d: error: insserv rejected the script header
dpkg: Fehler beim Bearbeiten von fail2ban (--configure):
Unterprozess installiertes post-installation-Skript gab den Fehlerwert 1


are ....

what shall i do?

thanks
Reply With Quote
  #7  
Old 6th April 2011, 14:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Try
Code:
insserv ispconfig_server
__________________
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
  #8  
Old 6th April 2011, 18:15
iceget iceget is offline
Member
 
Join Date: Feb 2008
Posts: 76
Thanks: 2
Thanked 0 Times in 0 Posts
Default re

hello!

thank you!

but its the same problem:
insserv: warning: current start runlevel(s) (2 3 5) of script `ispconfig_server' overwrites defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (empty) of script `ispconfig_server' overwrites defaults (0 1 6).
insserv: warning: script 'firewall' missing LSB tags and overrides
insserv: warning: script 'bastille-firewall' missing LSB tags and overrides
insserv: There is a loop at service rmnologin if started
insserv: There is a loop between service rmnologin and mountnfs if started
insserv: loop involving service mountnfs at depth 6
insserv: loop involving service nfs-common at depth 5
insserv: There is a loop between service rmnologin and checkroot if started
insserv: loop involving service checkroot at depth 3
insserv: loop involving service keyboard-setup at depth 2
insserv: loop involving service quota at depth 8
insserv: loop involving service hwclock at depth 5
insserv: loop involving service hwclockfirst at depth 3
insserv: loop involving service hostname at depth 4
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!
insserv: Starting ispconfig_server depends on rmnologin and therefore on system facility `$all' which can not be true!



its a fresh install with debians queeze and ispconfig 2.2.38

many greets
Reply With Quote
  #9  
Old 7th April 2011, 15:37
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

I've added this to our bugtracker, so we will check that.
__________________
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
  #10  
Old 8th April 2011, 09:19
iceget iceget is offline
Member
 
Join Date: Feb 2008
Posts: 76
Thanks: 2
Thanked 0 Times in 0 Posts
 
Default Re

hello falko,

thanks!

can you tell me when you have a possible solution?

thank you!

kind regards
--
markus
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
HowTo start developing ISPConfig till Developers' Forum 18 25th April 2014 20:43
ispconfig together with other portal app Mr_Miyagi Installation/Configuration 2 24th March 2007 17:19
ISPConfig not reponding fbnewtz General 2 10th September 2006 14:27
fastcgi and php with ispconfig tosser Tips/Tricks/Mods 3 25th June 2006 21:01
Ispconfig doesn't start at boot? natewlew Installation/Configuration 2 25th June 2006 20:55


All times are GMT +2. The time now is 19:54.


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