Last change
on this file since 1122 was
1104,
checked in by price, 16 years ago
|
fix dumb textual mistakes in sipb-xen-database-server initscript
|
File size:
882 bytes
|
Rev | Line | |
---|
[918] | 1 | #!/bin/bash |
---|
| 2 | ### BEGIN INIT INFO |
---|
[1104] | 3 | # Provides: sipb-xen-database-server |
---|
[918] | 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 |
---|
[1104] | 8 | # Short-Description: sipb-xen database server |
---|
[918] | 9 | # Description: |
---|
| 10 | ### END INIT INFO |
---|
| 11 | |
---|
[1104] | 12 | PACKAGE=sipb-xen-database-server |
---|
[918] | 13 | |
---|
| 14 | # Exit if the package is not installed |
---|
[989] | 15 | [ -x "/usr/bin/sipb-xen-database-tables" ] || exit 0 |
---|
[918] | 16 | |
---|
| 17 | . /lib/init/vars.sh |
---|
| 18 | . /lib/lsb/init-functions |
---|
| 19 | |
---|
| 20 | gen_config() |
---|
| 21 | { |
---|
[989] | 22 | for i in /etc/postgresql/8.3/main/pg_hba.conf |
---|
| 23 | do mako-render $i.mako > $i |
---|
| 24 | done |
---|
[918] | 25 | } |
---|
| 26 | |
---|
| 27 | case "$1" in |
---|
[989] | 28 | start|reload|force-reload|restart) |
---|
| 29 | log_begin_msg "Reloading config for $PACKAGE" |
---|
| 30 | gen_config |
---|
| 31 | log_end_msg $? |
---|
| 32 | /etc/init.d/postgresql-8.3 "$1" |
---|
| 33 | ;; |
---|
[918] | 34 | stop) |
---|
[989] | 35 | ;; |
---|
[918] | 36 | *) |
---|
[989] | 37 | log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}" |
---|
| 38 | ;; |
---|
[918] | 39 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.