Last change
on this file since 1942 was
1322,
checked in by price, 16 years ago
|
sipb-xen-dev -> invirt-dev
|
-
Property svn:executable set to
*
|
File size:
522 bytes
|
Rev | Line | |
---|
[890] | 1 | #!/bin/bash |
---|
[853] | 2 | |
---|
[1322] | 3 | PACKAGE=invirt-dev |
---|
[853] | 4 | |
---|
| 5 | . /lib/lsb/init-functions |
---|
| 6 | |
---|
| 7 | gen_config () { |
---|
| 8 | local keyid="$(invirt-getconf apt.keyid)" |
---|
| 9 | for f in /srv/repository/conf/{distributions,invirt-uploaders}; do |
---|
[861] | 10 | perl -pe "s/\@apt\.keyid\@/$keyid/g" <"$f".in >"$f" |
---|
[853] | 11 | done |
---|
| 12 | } |
---|
| 13 | |
---|
| 14 | case "$1" in |
---|
| 15 | start|reload|force-reload|restart) |
---|
| 16 | log_begin_msg "Reloading config for $PACKAGE" |
---|
| 17 | gen_config |
---|
| 18 | log_end_msg $? |
---|
| 19 | ;; |
---|
| 20 | stop) |
---|
| 21 | ;; |
---|
| 22 | *) |
---|
| 23 | log_success_msg "Usage: /etc/init.d/$PACKAGE {start|reload|force-reload|restart|stop}" |
---|
| 24 | ;; |
---|
| 25 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.