]> code.citadel.org Git - citadel.git/blobdiff - webcit/setup.c
* Added a 'restart' option to the init scripts
[citadel.git] / webcit / setup.c
index 34981e4c78a17ba0be249314efc4d91d58c90364..189036fc01b38b32b257318105f452cf617a0eaa 100644 (file)
@@ -556,7 +556,10 @@ void install_init_scripts(void)
                        "               rm -f /var/run/webcit-ssl.pid 2>/dev/null\n");
 #endif
        fprintf(fp,     "               ;;\n"
-                       "*)             echo \"Usage: $0 {start|stop}\"\n"
+                       "restart)       $0 stop\n"
+                       "               $0 start\n"
+                       "               ;;\n"
+                       "*)             echo \"Usage: $0 {start|stop|restart}\"\n"
                        "               exit 1\n"
                        "               ;;\n"
                        "esac\n"