Merge pull request #18 from fudanchii/default-conf

Add default configuration file for droned.
This commit is contained in:
Brad Rydzewski 2014-02-08 17:33:20 -07:00
commit 452d29345a
4 changed files with 20 additions and 3 deletions

View file

@ -48,6 +48,7 @@ test:
install:
cp deb/drone/etc/init/drone.conf /etc/init/drone.conf
test -f /etc/default/drone || cp deb/drone/etc/default/drone /etc/default/drone
cd bin && install -t /usr/local/bin drone
cd bin && install -t /usr/local/bin droned
mkdir -p /var/lib/drone

View file

@ -0,0 +1,2 @@
/etc/init/drone.conf
/etc/default/drone

View file

@ -0,0 +1,10 @@
# Upstart configuration file for droned.
# Command line options:
#
# -datasource="drone.sqlite":
# -driver="sqlite3":
# -path="":
# -port=":8080":
#
#DRONED_OPTS="--port=:80"

View file

@ -4,5 +4,9 @@ chdir /var/lib/drone
console log
script
droned --port=":80"
DRONED_OPTS="--port=:80"
if [ -f /etc/default/$UPSTART_JOB ]; then
. /etc/default/$UPSTART_JOB
fi
droned $DRONED_OPTS
end script