Index: control.c
===================================================================
--- control.c   (revision 179)
+++ control.c   (working copy)
@@ -207,6 +207,7 @@
  */
 int control_service(const char *S, int A) {
   Service_T s = NULL;
+  int restart;
 
   ASSERT(S);
 
@@ -257,9 +258,11 @@
       }
       LogInfo("'%s' trying to restart\n", s->name);
       do_depend(s, ACTION_STOP);
+      restart = s->restart;
       if (do_stop(s)) {
         /* Only start if stop succeeded */
         do_start(s);
+        s->restart = restart + 1;
         do_depend(s, ACTION_START);
       } else {
         /* enable monitoring of this service again to allow the restart retry
Index: monitrc
===================================================================
--- monitrc     (revision 179)
+++ monitrc     (working copy)
@@ -114,6 +114,8 @@
 #     allow @users readonly  # allow users of group 'users' to connect readonly
 #
 #
+set httpd port 2812
+  allow localhost
 ###############################################################################
 ## Services
 ###############################################################################
@@ -239,3 +241,4 @@
 #  include /etc/monit.d/*
 #
 #
+include /Users/giskard/code/tmp/monit-read-only/conf/*
Index: monitor.h
===================================================================
--- monitor.h   (revision 179)
+++ monitor.h   (working copy)
@@ -789,6 +789,7 @@
   struct myservice *next;                         /**< next service in chain */
   struct myservice *next_conf;      /**< next service according to conf file */
   struct myservice *next_depend;           /**< next depend service in chain */
+  int    restart;                                        /**< Time the service has been resarted*/
 } *Service_T;
 
 
Index: http/cervlet.c
===================================================================
--- http/cervlet.c      (revision 179)
+++ http/cervlet.c      (working copy)
@@ -2614,12 +2614,14 @@
         if(Run.doprocess)      {
        out_print(res,
                  "  %-33s %d\n"
+                 "  %-33s %d\n"
                  "  %-33s %ld\n"
                  "  %-33s %ld\n"
                  "  %-33s %.1f%%\n"
                  "  %-33s %.1f%%\n"
                  "  %-33s %.1f%%\n"
                  "  %-33s %.1f%%\n",
+                 "times restarted", s->restart,
                  "children", s->inf->children,
                  "memory kilobytes", s->inf->mem_kbyte,
                  "memory kilobytes total", s->inf->total_mem_kbyte,
