|
Last change
on this file since 2552 was
2552,
checked in by broder, 16 years ago
|
|
Change repository configuration to generate config from a mako
template using gen-files instead of rolling our own.
|
-
Property svn:executable set to
*
|
|
File size:
733 bytes
|
| Line | |
|---|
| 1 | #!/bin/bash |
|---|
| 2 | ### BEGIN INIT INFO |
|---|
| 3 | # Provides: invirt-dev |
|---|
| 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: Invirt development configuration |
|---|
| 9 | # Description: |
|---|
| 10 | ### END INIT INFO |
|---|
| 11 | |
|---|
| 12 | # Author: Invirt project <invirt@mit.edu> |
|---|
| 13 | |
|---|
| 14 | # Do NOT "set -e" |
|---|
| 15 | |
|---|
| 16 | NAME=invirt-dev |
|---|
| 17 | GEN_FILES=/srv/repository/conf/distributions |
|---|
| 18 | |
|---|
| 19 | . /lib/init/gen-files.sh |
|---|
| 20 | |
|---|
| 21 | case "$1" in |
|---|
| 22 | start|reload|force-reload|restart) |
|---|
| 23 | log_begin_msg "Reloading config for $PACKAGE" |
|---|
| 24 | gen_files |
|---|
| 25 | reprepro-env export |
|---|
| 26 | log_end_msg $? |
|---|
| 27 | ;; |
|---|
| 28 | stop) |
|---|
| 29 | ;; |
|---|
| 30 | *) |
|---|
| 31 | log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}" |
|---|
| 32 | ;; |
|---|
| 33 | esac |
|---|
Note: See
TracBrowser
for help on using the repository browser.