control: add function to enable service.
authorDavin McCall <davmac@davmac.org>
Tue, 16 Oct 2018 21:45:05 +0000 (22:45 +0100)
committerDavin McCall <davmac@davmac.org>
Tue, 16 Oct 2018 21:45:05 +0000 (22:45 +0100)
commit88a03245879e4308cee33c01383efe0ca97fe90e
treeae305783a3308f9d3f00f175cb4667e34408768e
parent75bbea5ddef86412d2a8eb2f5acaedb2a7176a1b
control: add function to enable service.

This adds a dependency, and starts the dependent service if not already
started (and if the dependent is started/starting).
src/control.cc
src/includes/control-cmds.h
src/includes/control.h
src/includes/service.h