• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/darkhttpd/S50darkhttpd
Eric Le BihanEric Le Bihan committed 9c9de1e2b5d10 Dec 2016
Raw file
Source viewDiff to previous
 
1
#!/bin/sh
2
#
3
# Starts darkhttpd.
4
#
5
​
6
# Allow a few customizations from a config file
7
test -r /etc/default/darkhttpd && . /etc/default/darkhttpd
8
​
9
DARKHTTPD_PROG=/usr/sbin/darkhttpd
10
DARKHTTPD_PIDFILE=/var/run/darkhttpd.pid
11
DARKHTTPD_ARGS="${DARKHTTPD_ROOT:-/var/www} --log /var/log/darkhttpd.log $DARKHTTPD_FLAGS --chroot --uid nobody --gid www-data"
12
​
13
start() {
14
    printf "Starting darkhttpd: "
15
    start-stop-daemon -S -q -b -p $DARKHTTPD_PIDFILE -m --exec $DARKHTTPD_PROG -- $DARKHTTPD_ARGS
16
    [ $? = 0 ] && echo "OK" || echo "FAIL"
17
}
18
​
19
stop() {
20
    printf "Stopping darkhttpd: "
21
    start-stop-daemon -K -q -p $DARKHTTPD_PIDFILE
22
    [ $? = 0 ] && echo "OK" || echo "FAIL"
23
}
24
​
25
restart() {
26
    stop
27
    start
28
}
29
​
30
case "$1" in
31
    start)
32
        start
33
        ;;
34
    stop)
35
        stop
36
        ;;
37
    restart|reload)
38
        restart
39
        ;;
40
    *)
41
        echo "Usage: $0 {start|stop|restart}"
42
        exit 1
43
esac
44
​
45
exit $?
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.