Service management of Sage - D
|
07-12-2016, 05:54 PM
(This post was last modified: 11-23-2019 11:41 PM by lingu.)
Post: #1
|
|||
|
|||
Service management of Sage - D
The src of the sage program is cod://sage/src/service/bin/sage
goal 1. the script can be used on sage_user@sage_portal to start/stop/status sage. 2. the script should not couple GLAD. The script would replace the current start.sh/stop.sh/status.sh. sage main logic Code: modname = sage sage start Start a sage_screen to run script start_sage. start_sage script looks like this: Code: trap ctrl_c Use auntie/ps to check whether sage is started correctly. If start successfully, wake_sage script is executed in a screen. wake_sage would periodically output the tasks graph info into $sage_base/stdout/tasks_graph.tmp.<timestamp>. sage stop Use 'dt slay' to stop DT. Kill the sage_screen. Use ps to check whether sage is stopped correctly. sage status "dexer auntie" to check the status of sage. sage ps Use "screen -ls" to get the sage_service screens info. Use "dexer 'ps aux' | grep -E 'vpc|nrc|scheduler|mem_home|atpd|ncat|xfer|sgl|: ps aux'" to get the processes info. sage tasks sage tasks invokes function tasks_sage(): Code: local tasks_graph_file=$base/stdout/tasks_graph.tmp --------- 20191123/lingu: move tasks out. 20190511/cwt: Add auntie call. 20190510/lingu: timeout default 3. 20190509/cwt: Add common var import. Add timeout, IP count etc. 20190508/lingu: add src location. 20160927/yxj: decouple sage service script with glad. |
|||
« Next Oldest | Next Newest »
|
- View a Printable Version
- Send this Thread to a Friend
- Subscribe to this thread
- Show the subscribers of this thread:
- Add subscribers to this thread: