diff options
| author | James Turnbull <james@lovedthanlost.net> | 2008-07-09 09:29:51 +1000 |
|---|---|---|
| committer | James Turnbull <james@lovedthanlost.net> | 2008-07-09 09:29:51 +1000 |
| commit | 9eb9affe11b4dbe69c7cd55aff28f39dffde27e8 (patch) | |
| tree | 3d9f483f87635464fba60939c8b9060271e491c9 /conf/redhat | |
| parent | c7dc73f272c1e004ff1b7c806d5f47460b6bfe6d (diff) | |
| download | puppet-9eb9affe11b4dbe69c7cd55aff28f39dffde27e8.tar.gz puppet-9eb9affe11b4dbe69c7cd55aff28f39dffde27e8.tar.xz puppet-9eb9affe11b4dbe69c7cd55aff28f39dffde27e8.zip | |
Fixed #1368 - updated Red Hat init scripts
Diffstat (limited to 'conf/redhat')
| -rw-r--r-- | conf/redhat/client.init | 10 | ||||
| -rw-r--r-- | conf/redhat/server.init | 10 |
2 files changed, 18 insertions, 2 deletions
diff --git a/conf/redhat/client.init b/conf/redhat/client.init index b77bd017a..c3cb91e90 100644 --- a/conf/redhat/client.init +++ b/conf/redhat/client.init @@ -62,6 +62,11 @@ restart() { start } +genconfig() { + echo -n $"Generate configuration puppet: " + $puppetd ${PUPPET_OPTS} ${PUPPET_EXTRA_OPTS} --genconfig +} + case "$1" in start) start @@ -86,8 +91,11 @@ case "$1" in shift $puppetd -o ${PUPPET_OPTS} ${PUPPET_EXTRA_OPTS} $@ ;; + genconfig) + genconfig + ;; *) - echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|once}" + echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|once|genconfig}" exit 1 esac diff --git a/conf/redhat/server.init b/conf/redhat/server.init index b64622140..8266977de 100644 --- a/conf/redhat/server.init +++ b/conf/redhat/server.init @@ -62,6 +62,11 @@ restart() { start } +genconfig() { + echo -n $"Generate configuration puppetmaster: " + $PUPPETMASTER $PUPPETMASTER_OPTS --genconfig +} + case "$1" in start) start @@ -79,8 +84,11 @@ case "$1" in status $PUPPETMASTER RETVAL=$? ;; + genconfig) + genconfig + ;; *) - echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart}" + echo $"Usage: $0 {start|stop|status|restart|reload|force-reload|condrestart|genconfig}" exit 1 esac |
