Subversion Repositories Mokou

Rev

Rev 5 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 nishi 1
/* $Id: mk_service.h 10 2024-09-07 09:55:12Z nishi $ */
2
 
3
#ifndef __MK_SERVICE_H__
4
#define __MK_SERVICE_H__
5
 
5 nishi 6
#include <stdbool.h>
7
 
2 nishi 8
struct mk_service {
5 nishi 9
	char* name;
4 nishi 10
	char* description;
2 nishi 11
	char* exec;
12
	char* pidfile;
5 nishi 13
	char* stop;
14
	bool stopped;
2 nishi 15
};
16
 
17
void mk_service_scan(void);
5 nishi 18
int mk_start_service(const char* name);
19
int mk_stop_service(const char* name);
20
void mk_start_services(void);
10 nishi 21
void mk_resurrect_services(void);
2 nishi 22
 
23
#endif