1
0
This repository has been archived on 2025-06-16. You can view files and clone it, but cannot push or open issues or pull requests.
Files
openwrt_archive/net/mini_httpd/files/mini_httpd.init
2007-05-10 10:38:53 +00:00

19 lines
299 B
Bash

#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org
START=50
BIN=mini_httpd
DEFAULT=/etc/default/$BIN
RUN_D=/var/run
PID_F=$RUN_D/$BIN.pid
[ -f $DEFAULT ] && . $DEFAULT
start() {
[ -d $RUN_D ] || mkdir -p $RUN_D
$BIN $OPTIONS 2>/dev/null
}
stop() {
[ -f $PID_F ] && kill $(cat $PID_F)
}