Subversion Repositories Mokou

Rev

Rev 4 | Rev 10 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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