View previous topic :: View next topic |
Author |
Message |
turtles Veteran
Joined: 31 Dec 2004 Posts: 1657
|
Posted: Sun Jun 05, 2022 8:59 pm Post subject: apache2 hook script |
|
|
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 |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1660
|
Posted: Sun Jun 05, 2022 9:34 pm Post subject: |
|
|
In /etc/conf.d/apache2, put something like this:
Code: | start_post() {
/usr/local/bin/my_apache_is_started_script
} |
|
|
Back to top |
|
|
turtles Veteran
Joined: 31 Dec 2004 Posts: 1657
|
Posted: Sun Jun 05, 2022 11:55 pm Post subject: |
|
|
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 |
|
|
|