Print this page
2594 implement graceful shutdown for local zones in zoneadm

@@ -19,10 +19,11 @@
  * CDDL HEADER END
  */
 
 /*
  * Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
  */
 
 #ifndef _ZONEADMD_H
 #define _ZONEADMD_H
 

@@ -56,10 +57,14 @@
 #define EXEC_LEN        (strlen(EXEC_PREFIX))
 
 #define CLUSTER_BRAND_NAME      "cluster"
 #define LABELED_BRAND_NAME      "labeled"
 
+#define SHUTDOWN_WAIT           60
+#define SHUTDOWN_DEFAULT        "/sbin/init 0"
+#define SHUTDOWN_FMRI   "svc:/system/zones:default"
+
 /* 0755 is the default directory mode. */
 #define DEFAULT_DIR_MODE \
         (S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH)
 #define DEFAULT_DIR_USER -1     /* user ID for chown: -1 means don't change */
 #define DEFAULT_DIR_GROUP -1    /* grp ID for chown: -1 means don't change */