All Squeeze Templates - change file-rc to insserv

apmuthu

Well-Known Member
Feb 26, 2009
807
8
58
Chennai - India & Singapore
github.com
The existing Squeeze Templates will have to be checked for the presence of file-rc for use in ProxmoxVE 1.8 as the latter now relies on insserv as the preferred method of managing startup scripts. Attempting to compile an OpenVZ template having file-rc in it's Makefile will result in the following error:
Code:
dab exec a2ensite joomla
Enabling site joomla.
Run '/etc/init.d/apache2 reload' to activate new configuration!
dab install file-rc
download: [URL]http://ftp.debian.org/debian/pool/main/f/file-rc/file-rc_0.8.12_all.deb[/URL]
install: file-rc
command 'vzctl exec2 90000 defenv dpkg --force-depends --force-confold --install /file-rc_0.8.12_all.deb' failed with exit code 1
command 'vzctl exec2 90000 defenv dpkg --force-depends --force-confold --install /file-rc_0.8.12_all.deb' failed with exit code 1
make: *** [all] Error 1

A working snippet from a joomla template is listed below:
Code:
.
.
.
 install -m 0644 joomla.conf ${BASEDIR}/etc/apache2/sites-available/joomla
 install -m 0755 joomla1523.mysql ${BASEDIR}/etc/
 install -m 0755 joomla1523_setup ${BASEDIR}/etc/init.d/
 dab exec insserv joomla1523_setup
 dab exec a2enmod rewrite
 dab exec a2dissite default
 dab exec a2ensite joomla
 dab finalize
.
.
.
Needless to say that the appropriately formatted comments at the start of the setup file (joomla1523_setup above) must adhere to that required by insserv.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!