Last change
on this file since 875 was
875,
checked in by y_z, 16 years ago
|
simplified the init script to follow sipb-xen-console.init
|
-
Property svn:executable set to
*
|
File size:
469 bytes
|
Rev | Line | |
---|
[875] | 1 | #!/bin/bash |
---|
[815] | 2 | |
---|
[875] | 3 | PACKAGE=sipb-xen-remctl-auto |
---|
[815] | 4 | |
---|
| 5 | . /lib/lsb/init-functions |
---|
| 6 | |
---|
| 7 | gen_config() |
---|
| 8 | { |
---|
[834] | 9 | echo "host/$(invirt-getconf remote.hostname)@$(invirt-getconf authn.0.realm)" \ |
---|
| 10 | > /etc/remctl/acl/remote |
---|
[815] | 11 | } |
---|
| 12 | |
---|
| 13 | case "$1" in |
---|
[875] | 14 | start|reload|force-reload|restart) |
---|
| 15 | log_begin_msg "Reloading config for $PACKAGE" |
---|
| 16 | gen_config |
---|
| 17 | log_end_msg $? |
---|
| 18 | ;; |
---|
[815] | 19 | stop) |
---|
[875] | 20 | ;; |
---|
[815] | 21 | *) |
---|
[875] | 22 | log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}" |
---|
| 23 | ;; |
---|
[815] | 24 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.