#!/bin/bash
#
### BEGIN INIT INFO
# Provides: bastille-firewall
# Required-Start: $network
# Required-Stop: $network
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Load/unload ipchains rulesets
# Description: A firewall/packet-filter script for Linux systems
# that allows the machine to be used as a gateway system
### END INIT INFO
#
# chkconfig: 2345 5 98
#
# $Id: bastille-firewall,v 1.6 2002/02/24 17:19:14 peterw Exp $
# Copyright (c) 1999-2002 Peter Watkins
-vi /etc/init.d/ispconfig_server
Code:
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: ispconfig_server
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the ISPConfig server
### END INIT INFO
The Following 2 Users Say Thank You to Akina For This Useful Post:
sinjab (24th May 2011),
xrat (16th August 2011)
[SOLVED] ISPConfig 2 won't auto start on boot on Debian Squeeze
Thanks Akina,
I have followed The Perfect Server guide for Debian 6 with ISPConfig 2.2.38. But, ispconfig_server won't auto start on boot. I have added the lines you mentioned in the headers of /etc/init.d/bastille-firewall and /etc/init.d/ispconfig_server. Then I ran:
Code:
insserv ispconfig_server
Reboot, and now ISPConfig 2 will auto start on boot .
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: bastille-firewall
# Required-Start: $network
# Required-Stop: $network
# Default-Start: S
# Default-Stop: 0 6
# Short-Description: Load/unload ipchains rulesets
# Description: A firewall/packet-filter script for Linux systems
# that allows the machine to be used as a gateway system
### END INIT INFO
#
# chkconfig: 2345 5 98
#
# $Id: bastille-firewall,v 1.6 2002/02/24 17:19:14 peterw Exp $
# Copyright (c) 1999-2002 Peter Watkins
-vi /etc/init.d/ispconfig_server
Code:
#!/bin/bash
#
### BEGIN INIT INFO
# Provides: ispconfig_server
# Required-Start: $network $syslog
# Required-Stop: $network
# Default-Start: 2 3 5
# Default-Stop: 0 1 6
# Description: Start or stop the ISPConfig server
### END INIT INFO
I put the headers given by Akina into /etc/insserv/overrides/bastille-firewall and /etc/insserv/overrides/ispconfig_server.
This solved my problems with errors when running "dpkg-reconfigure sysv-rc".
This might be a solution that is not overwritten when an update of ispconfig is done. But I hope the next version (will there be another) of ispconfig2 will handle this out of the box.
Recent comments
1 day 6 hours ago
1 day 11 hours ago
1 day 13 hours ago
1 day 13 hours ago
1 day 15 hours ago
1 day 20 hours ago
1 day 20 hours ago
1 day 23 hours ago
2 days 12 hours ago
2 days 13 hours ago