Last change
on this file since 2620 was
2618,
checked in by broder, 15 years ago
|
Fix the invirt-dev init script, because bash doesn't believe in
completely empty functions.
|
-
Property svn:executable set to
*
|
File size:
781 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 | |
---|
[2589] | 19 | . /lib/init/std-init.sh |
---|
[2552] | 20 | . /lib/init/gen-files.sh |
---|
| 21 | |
---|
[2589] | 22 | do_start() |
---|
| 23 | { |
---|
| 24 | # Return |
---|
| 25 | # 0 if daemon has been started |
---|
| 26 | # 1 if daemon was already running |
---|
| 27 | # 2 if daemon could not be started |
---|
| 28 | ret=0 |
---|
| 29 | gen_files || ret=2 |
---|
| 30 | reprepro-env export || ret=2 |
---|
| 31 | invirt-build-conf || ret=2 |
---|
| 32 | |
---|
| 33 | return $ret |
---|
| 34 | } |
---|
| 35 | |
---|
| 36 | do_stop() |
---|
| 37 | { |
---|
[2618] | 38 | : |
---|
[2589] | 39 | } |
---|
| 40 | |
---|
| 41 | do_reload() |
---|
| 42 | { |
---|
| 43 | do_start |
---|
| 44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.