From: Jamie C. <jca...@we...> - 2003-08-30 01:24:17
|
Joe Cooper wrote: > Alex Pilson wrote: > >> So does anyone know what exactly the "If monitor goes down, run >> command" feature really does? > > > It runs a command of your choosing (including a script). > >> i can't get it to work. Does it run as a certain user? I want to run a >> script to restart the service but it doesn't seem to work and I have >> no clue where to look if there are any status messages. > > > It runs as root. If your service stops, odds are there was a good > reason for it, and it will stop again. I usually have it page me or > email me (depending on importance of the service). > > Your script can run things as a different user using su, but the script > itself will be called as root. > > Jamie, it might be useful to have a "Run as user" option... Probably not too useful, as most responses to a down service (such as re-starting it) require root privileges. And as you said, the user can always enter su someuser -c "command to run as that user" - Jamie |