aboutsummaryrefslogtreecommitdiff
path: root/src/ctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ctl.c')
-rw-r--r--src/ctl.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/ctl.c b/src/ctl.c
index 22aecb8..11ec7b4 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -1251,6 +1251,9 @@ int
ctl_open (void)
{
int fd;
+
+ if (!control.url)
+ return 0;
fd = create_socket (control.url, SOCK_STREAM, NULL, 077);
if (fd == -1)
@@ -1877,6 +1880,13 @@ fun_start (struct json_value *result, struct prog *prog)
prog->v.p.status = status_enabled;
json_object_set_string (result, "status", "OK");
}
+ else if (prog->v.p.status == status_sleeping)
+ {
+ prog->v.p.status = status_enabled;
+ prog->v.p.failcount = 0;
+ prog->v.p.timestamp = 0;
+ json_object_set_string (result, "status", "OK");
+ }
else
{
json_object_set_string (result, "status", "ER");

Return to:

Send suggestions and report system problems to the System administrator.