The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

php query (ies?) by waveydavey2007-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]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)