author | sylvain.thenault@logilab.fr |
Tue, 10 Mar 2009 19:35:38 +0100 | |
branch | tls-sprint |
changeset 1036 | 593df4919845 |
parent 858 | e6ae125d5903 |
child 3001 | 74e842e4871a |
permissions | -rw-r--r-- |
0 | 1 |
#!/bin/sh -e |
2 |
||
3 |
### BEGIN INIT INFO |
|
4 |
# Provides: cubicweb |
|
5 |
# Required-Start: $syslog $local_fs $network |
|
6 |
# Required-Stop: $syslog $local_fs $network |
|
7 |
# Should-Start: $postgresql $pyro-nsd |
|
8 |
# Should-Stop: $postgresql $pyro-nsd |
|
9 |
# Default-Start: 2 3 4 5 |
|
10 |
# Default-Stop: 0 1 6 |
|
11 |
# Short-Description: Start cubicweb application at boot time |
|
12 |
### END INIT INFO |
|
13 |
||
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
14 |
# FIXME Seems to be inadequate here |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
15 |
# FIXME If related to pyro, try instead: |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
16 |
# export PYRO_STORAGE="/tmp" |
0 | 17 |
cd /tmp |
858
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
18 |
|
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
19 |
# FIXME Work-around about the following lintian error |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
20 |
# E: cubicweb-ctl: init.d-script-does-not-implement-required-option /etc/init.d/cubicweb start |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
21 |
# |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
22 |
# Check if we are sure to not want the start-stop-daemon machinery here |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
23 |
# Refer to Debian Policy Manual section 9.3.2 (Writing the scripts) for details. |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
24 |
|
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
25 |
case "$1" in |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
26 |
"force-reload") |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
27 |
/usr/bin/cubicweb-ctl reload --force |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
28 |
;; |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
29 |
"*|restart") |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
30 |
/usr/bin/cubicweb-ctl $1 --force |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
31 |
;; |
e6ae125d5903
reorganize debian packages (Closes: #1168)
Julien Jehannet <julien.jehannet@logilab.fr>
parents:
0
diff
changeset
|
32 |
esac |