aboutsummaryrefslogtreecommitdiff
path: root/src/com_restart.c
blob: 1b472774f70e4796ac3becbce14b206f50f769ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* This file is part of genrc
Copyryght (C) 2018 Sergey Poznyakoff
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
*/
#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.