Simple init.d/httpd script problem (Apache2) - Debian

charliecreed

Verified User
Joined
Feb 26, 2006
Messages
56
Hello you lot,

I recently upgraded everything to apache2, everything is fine except for one bloody thing.

I restart apache by doing apachectl restart or apachectl start etc..

During the upgrade of apache2 the /etc/init.d/httpd script got broken. I use debian and debian does not include /etc/init.d/fuctions nor killproc.

This is what I get when I try to use it.

Code:
root@london:/etc/init.d# /etc/init.d/httpd start
/etc/init.d/httpd: line 15: /etc/rc.d/init.d/functions: No such file or directory
Starting httpd: /etc/init.d/httpd: line 38: daemon: command not found

root@london:/etc/init.d#

Things like that, could one of you nerdy people please make a init.d script which works on Debian?

To be hounist I dont realy care about the script as I just use the manual commands but the problem is when a new account is created directadmin calls /etc/init.d/httpd to reload it, so the new account is online etc..

But it doesn't do this so I have to do it manualy and its annoying!

Thanks,
Charlie
 
I just had exactly the same problem as you on Debian, I posted elsewhere but no reply so far.

So all I have done is copied apachectl into /etc/init.d/ and renamed it httpd. No problems so far!
 
Why didn't I think of that!

I still hope someone can reply here with a working init.d script.
 
Just a question, when does directadmin actuly call when a new user is added?

/etc/init.d/httpd restart or gracefull ?

Because if its restart then it stops people which are downloading etc..
 
Back
Top