Mercurial > kallithea
annotate init.d/kallithea-upstart.conf @ 6619:865c1f65244c
repositories: make sure repositories not only differ in casing
Repositories only differing in case cause problems:
* it can't be stored on case insensitive filesystems (Windows and MacOS)
* some databases can't easily handle case sensitive queries
* users will most certainly be confused by names that only differ in case
We will keep trying to be case sensitive on systems that can ... but on some
systems wrong casings might work. We don't care.
The validators are changed to prevent mixed case repo and repo group names.
Repository sensitivity tests are removed, and insensitivity tests are added
instead.
author | domruf <dominikruf@gmail.com> |
---|---|
date | Thu, 23 Mar 2017 23:49:19 +0100 |
parents | 2c3d30095d5e |
children |
rev | line source |
---|---|
4190
99ad9d0af1a3
Rename init scripts and fix references inside them
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
1811
diff
changeset
|
1 # kallithea - run the kallithea daemon as an upstart job |
99ad9d0af1a3
Rename init scripts and fix references inside them
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
1811
diff
changeset
|
2 # Change variables/paths as necessary and place file /etc/init/kallithea.conf |
99ad9d0af1a3
Rename init scripts and fix references inside them
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
1811
diff
changeset
|
3 # start/stop/restart as normal upstart job (ie: $ start kallithea) |
1803
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
4 |
6370
e285bb7abb28
scripts: apply whitespace cleanup to more files - opt out instead of opt in
Mads Kiilerich <mads@kiilerich.com>
parents:
4212
diff
changeset
|
5 description "Kallithea Mercurial Server" |
e285bb7abb28
scripts: apply whitespace cleanup to more files - opt out instead of opt in
Mads Kiilerich <mads@kiilerich.com>
parents:
4212
diff
changeset
|
6 author "Matt Zuba <matt.zuba@goodwillaz.org" |
1803
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
7 |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
8 start on (local-filesystems and runlevel [2345]) |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
9 stop on runlevel [!2345] |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
10 |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
11 respawn |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
12 |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
13 umask 0022 |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
14 |
4190
99ad9d0af1a3
Rename init scripts and fix references inside them
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
1811
diff
changeset
|
15 env PIDFILE=/var/hg/kallithea/kallithea.pid |
99ad9d0af1a3
Rename init scripts and fix references inside them
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
1811
diff
changeset
|
16 env LOGFILE=/var/hg/kallithea/log/kallithea.log |
99ad9d0af1a3
Rename init scripts and fix references inside them
Bradley M. Kuhn <bkuhn@sfconservancy.org>
parents:
1811
diff
changeset
|
17 env APPINI=/var/hg/kallithea/production.ini |
1803
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
18 env HOME=/var/hg |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
19 env USER=hg |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
20 env GROUP=hg |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
21 |
6554
2c3d30095d5e
gearbox: replace paster with something TurboGears2-ish that still works with the Pylons stack
Mads Kiilerich <madski@unity3d.com>
parents:
6370
diff
changeset
|
22 exec /var/hg/.virtualenvs/kallithea/bin/gearbox serve --user=$USER --group=$GROUP --pid-file=$PIDFILE --log-file=$LOGFILE -c $APPINI |
1803
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
23 |
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
24 post-stop script |
6370
e285bb7abb28
scripts: apply whitespace cleanup to more files - opt out instead of opt in
Mads Kiilerich <mads@kiilerich.com>
parents:
4212
diff
changeset
|
25 rm -f $PIDFILE |
1803
96789e1b0064
Debian/Ubuntu upstart script
Matt Zuba <matt.zuba@goodwillaz.org>
parents:
diff
changeset
|
26 end script |