Subversion Repositories Mokou

Rev

Rev 10 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 10 Rev 13
Line 1... Line 1...
1
/* $Id: mk_service.h 10 2024-09-07 09:55:12Z nishi $ */
1
/* $Id: mk_service.h 13 2024-09-07 12:44:18Z 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>
6
#include <stdbool.h>
-
 
7
#include <pwd.h>
7
 
8
 
8
struct mk_service {
9
struct mk_service {
9
	char* name;
10
	char* name;
10
	char* description;
11
	char* description;
11
	char* exec;
12
	char* exec;
12
	char* pidfile;
13
	char* pidfile;
13
	char* stop;
14
	char* stop;
14
	bool stopped;
15
	bool stopped;
-
 
16
	uid_t uid;
-
 
17
	gid_t gid;
15
};
18
};
16
 
19
 
17
void mk_service_scan(void);
20
void mk_service_scan(void);
18
int mk_start_service(const char* name);
21
int mk_start_service(const char* name);
19
int mk_stop_service(const char* name);
22
int mk_stop_service(const char* name);