9 test x
"${collectd:-NO}" = x
"NO" && exit 0
10 test x
"$collectd" = x
"DAEMON" && test -x /bin
/mksh
&& exec mksh
-T- $0 start
14 [ -d /var
/lib
/collectd
] || mkdir
-p /var
/lib
/collectd
18 kill $
(pgrep
-f /usr
/sbin
/collectd
)
25 echo "Usage: $0 {start | stop | restart}"