summaryrefslogtreecommitdiffabout
path: root/src/ctl.c
authorSergey Poznyakoff <gray@gnu.org>2016-01-02 09:18:28 (GMT)
committer Sergey Poznyakoff <gray@gnu.org>2016-01-02 09:20:42 (GMT)
commit061afaf6385340f87bbeaa6d7e8ff6befa532551 (patch) (side-by-side diff)
tree7d42952187b6c035caba9c74cfb6cb8dfd651354 /src/ctl.c
parent00e6c3c3ed06a258a02943fc49fa7c528025d747 (diff)
downloadpies-061afaf6385340f87bbeaa6d7e8ff6befa532551.tar.gz
pies-061afaf6385340f87bbeaa6d7e8ff6befa532551.tar.bz2
piesctl: Implement all basic commands, except "restart"
Diffstat (limited to 'src/ctl.c') (more/less context) (ignore whitespace changes)
-rw-r--r--src/ctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ctl.c b/src/ctl.c
index ce13dab..cbc5fea 100644
--- a/src/ctl.c
+++ b/src/ctl.c
@@ -1,5 +1,5 @@
/* This file is part of GNU Pies.
- Copyright (C) 2007-2013 Sergey Poznyakoff
+ Copyright (C) 2007-2016 Sergey Poznyakoff
GNU Pies is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1446,7 +1446,7 @@ res_programs (struct ctlio *io, enum http_method meth,
ctlio_reply (io, 409, "already running");
else
{
- prog->v.p.comp->flags &= CF_DISABLED;
+ prog->v.p.comp->flags &= ~CF_DISABLED;
prog->v.p.status = status_enabled;
kill (getpid (), SIGALRM);
ctlio_reply (io, 200, "Component started");

Return to:

Send suggestions and report system problems to the System administrator.