equal
deleted
inserted
replaced
1 #!/bin/sh -e |
1 #!/bin/sh -e |
2 |
2 |
3 ### BEGIN INIT INFO |
3 ### BEGIN INIT INFO |
4 # Provides: cubicweb |
4 # Provides: cubicweb |
5 # Required-Start: $syslog $local_fs $network |
5 # Required-Start: $remote_fs $syslog $local_fs $network |
6 # Required-Stop: $syslog $local_fs $network |
6 # Required-Stop: $remote_fs $syslog $local_fs $network |
7 # Should-Start: $postgresql $pyro-nsd |
7 # Should-Start: $postgresql $pyro-nsd |
8 # Should-Stop: $postgresql $pyro-nsd |
8 # Should-Stop: $postgresql $pyro-nsd |
9 # Default-Start: 2 3 4 5 |
9 # Default-Start: 2 3 4 5 |
10 # Default-Stop: 0 1 6 |
10 # Default-Stop: 0 1 6 |
11 # Short-Description: Start cubicweb application at boot time |
11 # Short-Description: Start cubicweb application at boot time |
27 python -W ignore /usr/bin/cubicweb-ctl reload --force |
27 python -W ignore /usr/bin/cubicweb-ctl reload --force |
28 ;; |
28 ;; |
29 status) |
29 status) |
30 python -W ignore /usr/bin/cubicweb-ctl status |
30 python -W ignore /usr/bin/cubicweb-ctl status |
31 ;; |
31 ;; |
32 *) |
32 start|stop|restart|*) |
33 python -W ignore /usr/bin/cubicweb-ctl $1 --force |
33 python -W ignore /usr/bin/cubicweb-ctl $1 --force |
34 ;; |
34 ;; |
35 esac |
35 esac |