summaryrefslogtreecommitdiff
path: root/webfs/webfsd
diff options
context:
space:
mode:
authorJose V Beneyto <sepen@crux.nu>2012-10-18 16:14:19 +0200
committerJose V Beneyto <sepen@crux.nu>2012-10-18 16:14:19 +0200
commitf139f7fdd317a9d61a4d3a5acd91dac31ea4d520 (patch)
treef359f261429568c271ca421c51f37cee5321089e /webfs/webfsd
parent35443f0ba6997492be0e8fae2595403691f0f2a5 (diff)
downloadopt-f139f7fdd317a9d61a4d3a5acd91dac31ea4d520.tar.gz
opt-f139f7fdd317a9d61a4d3a5acd91dac31ea4d520.tar.xz
webfs: resurrected and new maintainer
Diffstat (limited to 'webfs/webfsd')
-rwxr-xr-xwebfs/webfsd23
1 files changed, 23 insertions, 0 deletions
diff --git a/webfs/webfsd b/webfs/webfsd
new file mode 100755
index 000000000..2e54e42d8
--- /dev/null
+++ b/webfs/webfsd
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# /etc/rc.d/httpd: start/stop webfs http daemon
+#
+
+case $1 in
+start)
+ /usr/bin/webfsd -u www -g www -r /var/www -p 80 -f index.html
+ ;;
+stop)
+ killall -q /usr/bin/webfsd
+ ;;
+restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file

Generated by cgit