diff options
author | Sergey Poznyakoff <gray@gnu.org> | 2016-01-02 11:18:28 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org> | 2016-01-02 11:20:42 +0200 |
commit | 061afaf6385340f87bbeaa6d7e8ff6befa532551 (patch) | |
tree | 7d42952187b6c035caba9c74cfb6cb8dfd651354 /src/ctl.c | |
parent | 00e6c3c3ed06a258a02943fc49fa7c528025d747 (diff) | |
download | pies-061afaf6385340f87bbeaa6d7e8ff6befa532551.tar.gz pies-061afaf6385340f87bbeaa6d7e8ff6befa532551.tar.bz2 |
piesctl: Implement all basic commands, except "restart"
Diffstat (limited to 'src/ctl.c')
-rw-r--r-- | src/ctl.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,8 +1,8 @@ /* 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 the Free Software Foundation; either version 3, or (at your option) any later version. @@ -1443,13 +1443,13 @@ res_programs (struct ctlio *io, enum http_method meth, else { if (!(prog->v.p.comp->flags & CF_DISABLED)) 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"); } } } |