]> code.citadel.org Git - citadel.git/blobdiff - citadel/setup.c
* Added a 'restart' option to the init scripts
[citadel.git] / citadel / setup.c
index f8500529e671e2cab91c3ac03f4d2d88dcc08de4..b2b58363e465fb26f88c1eb9eb3d21f95c05830a 100644 (file)
@@ -483,7 +483,10 @@ void install_init_scripts(void)
                        "               fi\n"
                        "               rm -f /var/run/citadel.pid 2>/dev/null\n");
        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"