--- freem/src/fmadm.h	2025/03/09 19:14:25	1.3
+++ freem/src/fmadm.h	2025/04/02 02:16:27	1.7
@@ -1,5 +1,5 @@
 /*
- *   $Id: fmadm.h,v 1.3 2025/03/09 19:14:25 snw Exp $
+ *   $Id: fmadm.h,v 1.7 2025/04/02 02:16:27 snw Exp $
  *    FreeM Administrative Tool
  *
  *  
@@ -24,6 +24,18 @@
  *   along with FreeM.  If not, see <https://www.gnu.org/licenses/>.
  *
  *   $Log: fmadm.h,v $
+ *   Revision 1.7  2025/04/02 02:16:27  snw
+ *   Add fmadm status environment command and move journals to a better location
+ *
+ *   Revision 1.6  2025/04/01 20:11:46  snw
+ *   Further work on fmadm
+ *
+ *   Revision 1.5  2025/03/22 18:43:54  snw
+ *   Make STRLEN 255 chars and add BIGSTR macro for larger buffers
+ *
+ *   Revision 1.4  2025/03/15 03:19:34  snw
+ *   Fix broken build and update to 0.62.1
+ *
  *   Revision 1.3  2025/03/09 19:14:25  snw
  *   First phase of REUSE compliance and header reformat
  *
@@ -42,7 +54,6 @@
 #include "fma_locks.h"
 #include "fma_routines.h"
 #include "fma_jobs.h"
-#include "fma_gedit.h"
 
 #define FMA_MAXARGS 30
 
@@ -78,6 +89,10 @@
 #define ACT_RESTORE 10
 #define ACT_MIGRATE 11
 #define ACT_EDIT 12
+#define ACT_START 13
+#define ACT_STOP 14
+#define ACT_RESTART 15
+#define ACT_STATUS 16
 
 #define OBJ_LOCK 0
 #define OBJ_ZALLOC 1
@@ -88,6 +103,7 @@
 #define OBJ_HARDCOPY 6
 #define OBJ_RGAPROTOCOL 7
 #define OBJ_JOB 8
+#define OBJ_DAEMON 9
 
 #define UNSIGN(A) ((A)&0377)
 
@@ -116,14 +132,15 @@ void fm_sig_init (void);
 void fm_on_sigint (void);
 void fm_on_sigterm (void);
 
+extern char fma_environment[STRLEN];
 extern char fma_namespace[STRLEN];
-extern char fma_locktab[STRLEN];
-extern char fma_routine_path[STRLEN];
-extern char fma_global_path[STRLEN];
-extern char fma_journal_path[STRLEN];
-extern char fma_pct_global_path[STRLEN];
-extern char fma_pct_routine_path[STRLEN];
+extern char fma_routine_path[PATHLEN];
+extern char fma_global_path[PATHLEN];
+extern char fma_journal_path[PATHLEN];
+extern char fma_pct_global_path[PATHLEN];
+extern char fma_pct_routine_path[PATHLEN];
 extern char fma_journal_cut_threshold[STRLEN];
+extern char fma_locktab[PATHLEN];
 
 extern char gloplib[PATHLEN];
 extern char glopath[PATHLEN];