Last change
on this file since 1095 was
1051,
checked in by broder, 16 years ago
|
Actually stop Apache on shutdown
|
-
Property svn:executable set to
*
|
File size:
790 bytes
|
Rev | Line | |
---|
[875] | 1 | #!/bin/bash |
---|
[876] | 2 | ### BEGIN INIT INFO |
---|
[881] | 3 | # Provides: sipb-xen-www |
---|
[876] | 4 | # Required-Start: $local_fs $remote_fs |
---|
| 5 | # Required-Stop: $local_fs $remote_fs |
---|
| 6 | # Default-Start: 2 3 4 5 |
---|
| 7 | # Default-Stop: 0 1 6 |
---|
| 8 | # Short-Description: conserver config from invirt config for invirt host |
---|
| 9 | # Description: |
---|
| 10 | ### END INIT INFO |
---|
[815] | 11 | |
---|
[881] | 12 | PACKAGE=sipb-xen-www |
---|
[815] | 13 | |
---|
| 14 | . /lib/lsb/init-functions |
---|
| 15 | |
---|
| 16 | gen_config() |
---|
| 17 | { |
---|
[886] | 18 | for i in /etc/apache2/sites-available/{ssl,svn} |
---|
| 19 | do mako-render $i.mako > $i |
---|
| 20 | done |
---|
[815] | 21 | } |
---|
| 22 | |
---|
| 23 | case "$1" in |
---|
[875] | 24 | start|reload|force-reload|restart) |
---|
| 25 | log_begin_msg "Reloading config for $PACKAGE" |
---|
| 26 | gen_config |
---|
| 27 | log_end_msg $? |
---|
[952] | 28 | /etc/init.d/apache2 "$1" |
---|
[875] | 29 | ;; |
---|
[815] | 30 | stop) |
---|
[1051] | 31 | /etc/init.d/apache2 "$1" |
---|
[875] | 32 | ;; |
---|
[815] | 33 | *) |
---|
[875] | 34 | log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}" |
---|
| 35 | ;; |
---|
[815] | 36 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.