source: packages/utils/smartmontools/files/smartd.init @ 10734

Last change on this file since 10734 was 10734, checked in by olli, 8 years ago

[Packages] Fix init script props

  • Property svn:eol-style set to native
File size: 450 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3
4START=95
5start() {
6  [ -f /etc/smartd.conf ] || {
7    echo "/etc/smartd.conf does not exist !";
8    exit 0;
9  };
10  [ -d /var/run ] || mkdir -p /var/run
11  [ -x /usr/sbin/smartd ] && /usr/sbin/smartd -q never -p /var/run/smartd.pid
12}
13
14stop() {
15  killall smartd
16}
17
18restart() {
19        stop
20        sleep 1
21        start
22}
23
24reload() {
25        kill -HUP `cat /var/run/smartd.pid` &>/dev/null
26}
27
28
Note: See TracBrowser for help on using the repository browser.