Last change
on this file since 2552 was
2552,
checked in by broder, 15 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
|
Rev | Line | |
---|
[890] | 1 | #!/bin/bash |
---|
[2552] | 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 |
---|
[853] | 11 | |
---|
[2552] | 12 | # Author: Invirt project <invirt@mit.edu> |
---|
[853] | 13 | |
---|
[2552] | 14 | # Do NOT "set -e" |
---|
[853] | 15 | |
---|
[2552] | 16 | NAME=invirt-dev |
---|
| 17 | GEN_FILES=/srv/repository/conf/distributions |
---|
[853] | 18 | |
---|
[2552] | 19 | . /lib/init/gen-files.sh |
---|
| 20 | |
---|
[853] | 21 | case "$1" in |
---|
| 22 | start|reload|force-reload|restart) |
---|
| 23 | log_begin_msg "Reloading config for $PACKAGE" |
---|
[2552] | 24 | gen_files |
---|
| 25 | reprepro-env export |
---|
[853] | 26 | log_end_msg $? |
---|
| 27 | ;; |
---|
| 28 | stop) |
---|
| 29 | ;; |
---|
| 30 | *) |
---|
[2552] | 31 | log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}" |
---|
[853] | 32 | ;; |
---|
| 33 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.