csync-git
[mirrors/ArchLinux-Packages.git] / busybox-httpd / busybox-httpd
CommitLineData
209feeb0
H
1#!/bin/sh
2
3bind='80';
4root='/srv/http';
5conf='/etc/busybox/httpd.conf';
6user='http:http';
7realm='Protected Area';
8log='/var/log/busybox-httpd.log';
9pidfile='/var/run/busybox-httpd.pid';
10. /etc/busybox/httpd-rc.conf
11
12if [ ! -z "$1" ]; then
13 pidfile="$1";
14fi;
15
16echo -e "\n[!] HTTPd restarted: $(date -R)" >> "$log";
17
18/bin/busybox httpd \
19 -f -vv \
20 -p "$bind" \
21 -h "$root" \
22 -c "$conf" \
23 -u "$user" \
24 -r "$realm" \
25 >> "$log" 2>&1 &
26
27echo "$!" > "$pidfile";
This page took 0.139235 seconds and 4 git commands to generate.