]> code.citadel.org Git - citadel.git/commitdiff
* Added a 'restart' option to the init scripts
authorArt Cancro <ajc@citadel.org>
Fri, 1 Dec 2006 04:23:06 +0000 (04:23 +0000)
committerArt Cancro <ajc@citadel.org>
Fri, 1 Dec 2006 04:23:06 +0000 (04:23 +0000)
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"