|
Home > Archive > Debian Developers > August 2004 > How to restart apache within a postinst script?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to restart apache within a postinst script?
|
|
| Thomas GOIRAND 2004-08-03, 2:49 am |
| Hi !
Sorry if it's the wrong place to post, I'm not sure... All is in the topic of this message!
I've written a package for debian (details of the software after). The problem is that when it has to start apache with "apachectl start", then the installer is waiting forever that the process "apache" terminates, as long as it has been launched by the installer.
Can someone tell me the correct methode to (re)start apache from postint script ?
Regards,
Thomas GOIRAND
P.S: Please write also to my email thomas AT goirand DOT fr, thanks.
Domain Technologie Control (DTC) is a set of php scripts and a web interface that manage a mysql database that handles all the host information. It generates backup scripts, statistic calculation scripts, and config files for bind, Apache, qmail, and proftpd, using a single system UID/GID. With DTC, you can delegate the task of creating subdomains, email, and FTP accounts to users for the domain names they own, and monitor bandwidth per user and service.
If you want to know more, you can have a look at http://www.gplhost.com/?rub=softwares&sousrub=dtc. It's downloadable from ftp.gplhost.com as well (this one contains a debian repository).
Best regards,
Thomas GOIRAND
Get a hosting account: http://gplhost.com
GPL.Host: Open Source hosting worldwide
| |
| Stephen Cormier 2004-08-03, 2:49 am |
| On August 3, 2004 12:58 am, Thomas GOIRAND wrote:
> Can someone tell me the correct methode to (re)start apache from
> postint script ?
If I was you and trying to the same thing I think I would take a look at=20
the already existing apache.preinst and apache.postinst scripts and see=20
if they can be modified for use/used by your program.
Stephen Cormier
| |
| Pierre HABOUZIT 2004-08-03, 2:49 am |
| On Tue, Aug 03, 2004 at 02:12:17AM -0300, Stephen Cormier wrote:
> On August 3, 2004 12:58 am, Thomas GOIRAND wrote:
>
>
>
> If I was you and trying to the same thing I think I would take a look at
> the already existing apache.preinst and apache.postinst scripts and see
> if they can be modified for use/used by your program.
have a look at /usr/share/wwwconfig-common/restart.sh
in wwwconfig-common
--
Pierre Habouzit http://www.madism.org/
-==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==--==-
gpg : 1024D/A1EE761C 6045 409E 5CB5 2CEA 3E70 F17E C41E 995C C98C 90BE
spam: mad.junk@madism.org
|
|
|
|
|