equal
deleted
inserted
replaced
1 #!/bin/sh -e |
|
2 |
|
3 ### BEGIN INIT INFO |
|
4 # Provides: cubicweb |
|
5 # Required-Start: $remote_fs $syslog $local_fs $network |
|
6 # Required-Stop: $remote_fs $syslog $local_fs $network |
|
7 # Should-Start: postgresql |
|
8 # Should-Stop: postgresql |
|
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 |
|
14 # FIXME Seems to be inadequate here |
|
15 cd /tmp |
|
16 |
|
17 # FIXME Work-around about the following lintian error |
|
18 # E: cubicweb-ctl: init.d-script-does-not-implement-required-option /etc/init.d/cubicweb start |
|
19 # |
|
20 # Check if we are sure to not want the start-stop-daemon machinery here |
|
21 # Refer to Debian Policy Manual section 9.3.2 (Writing the scripts) for details. |
|
22 |
|
23 case $1 in |
|
24 force-reload) |
|
25 python -W ignore /usr/bin/cubicweb-ctl reload --force |
|
26 ;; |
|
27 status) |
|
28 python -W ignore /usr/bin/cubicweb-ctl status |
|
29 ;; |
|
30 start|stop|restart|*) |
|
31 python -W ignore /usr/bin/cubicweb-ctl $1 --force |
|
32 ;; |
|
33 esac |
|