aboutsummaryrefslogtreecommitdiff
path: root/src/com_restart.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/com_restart.c')
-rw-r--r--src/com_restart.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/com_restart.c b/src/com_restart.c
new file mode 100644
index 0000000..b3588a1
--- /dev/null
+++ b/src/com_restart.c
@@ -0,0 +1,12 @@
+#include "genrc.h"
+
+int
+com_restart(void)
+{
+ int rc;
+ rc = com_stop();
+ if (rc == 0)
+ rc = com_start();
+ return rc;
+}
+

Return to:

Send suggestions and report system problems to the System administrator.