Changeset 989 for vendor/current/ctdb/config
- Timestamp:
- Nov 25, 2016, 8:04:54 PM (9 years ago)
- Location:
- vendor/current/ctdb/config
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/ctdb/config/ctdb.service
r988 r989 1 1 [Unit] 2 2 Description=CTDB 3 After=network .target3 After=network-online.target time-sync.target 4 4 5 5 [Service] -
vendor/current/ctdb/config/ctdbd_wrapper
r988 r989 182 182 if [ -n "$_session" ] ; then 183 183 pkill -9 -s "$_session" 2>/dev/null 184 rm -f "$pidfile"185 184 fi 186 185 } -
vendor/current/ctdb/config/events.d/05.system
r988 r989 48 48 fi 49 49 50 if validate_percentage "$_warn_threshold" "$_ what" ; then50 if validate_percentage "$_warn_threshold" "$_thing" ; then 51 51 if [ "$_usage" -ge "$_warn_threshold" ] ; then 52 52 if [ -r "$_cache" ] ; then … … 145 145 END { 146 146 if (memavail != 0) { memfree = memavail ; } 147 print int((memtotal - memfree) / memtotal * 100),148 int((swaptotal - swapfree) / swaptotal * 100)147 if (memtotal != 0) { print int((memtotal - memfree) / memtotal * 100) ; } else { print 0 ; } 148 if (swaptotal != 0) { print int((swaptotal - swapfree) / swaptotal * 100) ; } else { print 0 ; } 149 149 }') 150 150 _mem_usage="$1"
Note:
See TracChangeset
for help on using the changeset viewer.