source: packages/admin/monit/files/monit.init @ 28887

Last change on this file since 28887 was 28887, checked in by nico, 5 years ago

packages/monit: use new service functions, fix /etc/monitrc permissions

  • Property svn:eol-style set to native
File size: 287 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006-2011 OpenWrt.org
3
4START=60
5
6SERVICE_USE_PID=1
7
8start() {
9        [ -f /etc/monitrc ] || return 1
10        [ "$(stat -c "%a" /etc/monitrc)" = "0700" ] || chmod 0700 /etc/monitrc
11        service_start /usr/bin/monit -d 60
12}
13
14stop() {
15        service_stop /usr/bin/monit
16}
Note: See TracBrowser for help on using the repository browser.