|
|
Back to UserFriendly Strip Comments Index
|
php query (ies?) | by waveydavey | 2007-07-10 02:32:16 |
| For the config file part |
by sazzer |
2007-07-10 03:24:41 |
Have a duplicate config file that is accessable by the webserver, and *only* the webserver. Have your script edit this file instead of the live file, and have a cronjob that regularly checks for changes between the live file and this file and if they differ backs up the current live file somewhere (email it to youself?) and copies the new one over the top.
For the init.d jobs, I assume that it's a very small set of jobs that are to be restarted, and that they are only going to be restarted. In that case, I'd have the webserver store somewhere the jobs that are to be restarted and have a cronjob check that store and restart as required.
I'm actually guessing that you want to restart the init.d jobs that are associated with the config file being edited, in which case I'd have one job that copies the new config file into place and then restarts the job automatically... |
|
[ Reply ] |
|
|
[Todays Cartoon Discussion]
[News Index]
|
|