Last change
on this file since 2567 was
2565,
checked in by broder, 15 years ago
|
Add a script for generating the remctl configuration to trigger the
Invirtibuilder.
|
-
Property svn:executable set to
*
|
File size:
755 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 | invirt-build-conf |
---|
27 | log_end_msg $? |
---|
28 | ;; |
---|
29 | stop) |
---|
30 | ;; |
---|
31 | *) |
---|
32 | log_success_msg "Usage: /etc/init.d/$NAME {start|reload|force-reload|restart|stop}" |
---|
33 | ;; |
---|
34 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.