2023-10-27 15:43:17 -04:00
|
|
|
#ifndef SERVICES_H
|
|
|
|
#define SERVICES_H
|
|
|
|
|
2024-04-10 20:51:56 -04:00
|
|
|
// This file is part of JustMotion.
|
2023-10-27 15:43:17 -04:00
|
|
|
|
2024-04-10 20:51:56 -04:00
|
|
|
// JustMotion is free software: you can redistribute it and/or modify
|
2023-10-27 15:43:17 -04:00
|
|
|
// it under the terms of the GNU General Public License as published by
|
|
|
|
// the Free Software Foundation, either version 3 of the License, or
|
|
|
|
// (at your option) any later version.
|
|
|
|
|
2024-04-10 20:51:56 -04:00
|
|
|
// JustMotion is distributed in the hope that it will be useful,
|
2023-10-27 15:43:17 -04:00
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
// GNU General Public License for more details.
|
|
|
|
|
|
|
|
#include "common.h"
|
|
|
|
|
|
|
|
QString camCmdFromConf(shared_t *conf, CmdExeType type);
|
|
|
|
void servStatByDir(const QString &path);
|
|
|
|
void servStatByConf(const QString &confFile);
|
|
|
|
int loadService(const QString &desc, const QString &user, const QString &servName, const QString &workDir, const QString &recPath, bool start);
|
|
|
|
int loadServiceByConf(const QString &confFile, bool start);
|
|
|
|
int loadServiceByDir(const QString &path, bool start);
|
|
|
|
int rmServiceByConf(const QString &confFile);
|
|
|
|
int rmService(const QString &servName);
|
|
|
|
int rmServiceByDir(const QString &path);
|
2023-12-23 17:38:11 -05:00
|
|
|
int loadSh(const QString &name, const QString &exeCmd, const QString &buffDir, const QString &outDir, const QString &servUser, const QString &servGroup);
|
2023-10-27 15:43:17 -04:00
|
|
|
|
|
|
|
#endif // SERVICES_H
|