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

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

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