source: packages/ipv6/totd/files/totd.init @ 6500

Last change on this file since 6500 was 6500, checked in by pavlov, 10 years ago

huge propset, fixes eol-style on everything and sets keywords and copyright on all Makefiles

  • Property svn:eol-style set to native
File size: 255 bytes
Line 
1#!/bin/sh /etc/rc.common
2# Copyright (C) 2006 OpenWrt.org
3
4START=60
5BIN=totd
6RUN_D=/var/run
7PID_F=$RUN_D/$BIN.pid
8
9
10start() {
11        mkdir -p $RUN_D
12        $BIN -c /etc/totd.conf
13}
14
15stop() {
16        [ -f $PID_F ] && kill $(cat $PID_F)
17}
18
19restart() {
20        stop
21        sleep 1
22        start
23}
Note: See TracBrowser for help on using the repository browser.