You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bigtop.apache.org by rv...@apache.org on 2013/02/10 07:04:01 UTC
[27/50] [abbrv] git commit: BIGTOP-802. Add rollback option to
DataNode service script
BIGTOP-802. Add rollback option to DataNode service script
Project: http://git-wip-us.apache.org/repos/asf/bigtop/repo
Commit: http://git-wip-us.apache.org/repos/asf/bigtop/commit/5f119501
Tree: http://git-wip-us.apache.org/repos/asf/bigtop/tree/5f119501
Diff: http://git-wip-us.apache.org/repos/asf/bigtop/diff/5f119501
Branch: refs/heads/RCs
Commit: 5f11950170478ea6dfd0443acb81b5e0bdf11614
Parents: 8f40ad7
Author: Roman Shaposhnik <rv...@cloudera.com>
Authored: Mon Dec 3 16:25:49 2012 -0800
Committer: Roman Shaposhnik <rv...@cloudera.com>
Committed: Tue Dec 4 15:14:35 2012 -0800
----------------------------------------------------------------------
.../src/common/hadoop/hadoop-hdfs-datanode.svc | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/bigtop/blob/5f119501/bigtop-packages/src/common/hadoop/hadoop-hdfs-datanode.svc
----------------------------------------------------------------------
diff --git a/bigtop-packages/src/common/hadoop/hadoop-hdfs-datanode.svc b/bigtop-packages/src/common/hadoop/hadoop-hdfs-datanode.svc
index d6ec001..d9ca930 100644
--- a/bigtop-packages/src/common/hadoop/hadoop-hdfs-datanode.svc
+++ b/bigtop-packages/src/common/hadoop/hadoop-hdfs-datanode.svc
@@ -61,3 +61,17 @@ start() {
__EOT__
}
+
+generate_extra_commands() {
+
+cat <<'__EOT__'
+ rollback)
+ DAEMON_FLAGS="$DAEMON_FLAGS -${1}"
+ start
+ ;;
+ *)
+ echo $"Usage: $0 {start|stop|status|restart|try-restart|condrestart|rollback}"
+ exit 1
+__EOT__
+
+}