summaryrefslogtreecommitdiffstats
path: root/abs/extra/sysstat/sysstat
blob: d8e312a18dbc29632a46fa3d8fe2a83ff90bb32d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash

. /etc/rc.conf
. /etc/rc.d/functions

case "$1" in
  start)
    stat_busy "Writing SysStat restart record"
    /usr/lib/sa/sadc -L -F -
    if [ $? -gt 0 ]; then
      stat_fail
    else
      stat_done
    fi
    ;;
  stop)
    ;;
  *)
    echo "usage: $0 {start|stop}"  
esac
exit 0