2017-09-30 Fred Gleason <fredg@paravelsystems.com>

* Added static 'RDSvc::create()' and 'RDSvc::remove()' methods.
	* Implemented 'CreateService=' and 'NewServiceTemplate=' parameters
	in the [Provisioning] section of rd.conf(5).
This commit is contained in:
Fred Gleason
2017-09-30 20:14:42 -04:00
parent f17a4ca509
commit 2992fcd5c9
12 changed files with 208 additions and 58 deletions

View File

@@ -2,7 +2,7 @@
//
// Abstract a Rivendell Service
//
// (C) Copyright 2002-2004,2016 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2002-2004,2016-2017 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License version 2 as
@@ -90,6 +90,9 @@ class RDSvc : public QObject
void create(const QString exemplar) const;
void remove() const;
QString xml() const;
static bool create(const QString &name,QString *err_msg,
const QString &exemplar);
static void remove(const QString &name);
static QString timeString(int hour,int secs);
static QString svcTableName(const QString &svc_name);