Rev 10 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
/* $Id: mk_service.h 13 2024-09-07 12:44:18Z nishi $ */
#ifndef __MK_SERVICE_H__
#define __MK_SERVICE_H__
#include <stdbool.h>
#include <pwd.h>
struct mk_service {
char* name;
char* description;
char* exec;
char* pidfile;
char* stop;
bool stopped;
uid_t uid;
gid_t gid;
};
void mk_service_scan(void);
int mk_start_service(const char* name);
int mk_stop_service(const char* name);
void mk_start_services(void);
void mk_resurrect_services(void);
#endif