Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
apache2 hook script
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Sun Jun 05, 2022 8:59 pm    Post subject: apache2 hook script Reply with quote

Greetings all I have a little script that I run every time apache2 is started
Presently I added a line to /etc/init.d/apache2 that calls the script.
Is there a better Gentoo way to do this?
Cheers
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
grknight
Retired Dev
Retired Dev


Joined: 20 Feb 2015
Posts: 1659

PostPosted: Sun Jun 05, 2022 9:34 pm    Post subject: Reply with quote

In /etc/conf.d/apache2, put something like this:

Code:
start_post() {
  /usr/local/bin/my_apache_is_started_script
}
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1655

PostPosted: Sun Jun 05, 2022 11:55 pm    Post subject: Reply with quote

grknight wrote:
In /etc/conf.d/apache2, put something like this:

Code:
start_post() {
  /usr/local/bin/my_apache_is_started_script
}


Thanks Ill give that a try
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum