Subversion Repositories Mokou

Rev

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

Rev 6 Rev 8
Line 1... Line 1...
1
/* $Id: service.c 6 2024-09-07 08:57:23Z nishi $ */
1
/* $Id: service.c 8 2024-09-07 09:22:48Z nishi $ */
2
 
2
 
3
#include "mk_service.h"
3
#include "mk_service.h"
4
 
4
 
5
#include <fcntl.h>
5
#include <fcntl.h>
6
#include <stdio.h>
6
#include <stdio.h>
Line 17... Line 17...
17
 
17
 
18
struct mk_service** services = NULL;
18
struct mk_service** services = NULL;
19
 
19
 
20
#ifdef __linux__
20
#ifdef __linux__
21
const char* sys_signame[] = {
21
const char* sys_signame[] = {
-
 
22
	"",
22
	"HUP",
23
	"HUP",
23
	"INT",
24
	"INT",
24
	"QUIT",
25
	"QUIT",
25
	"ILL",
26
	"ILL",
26
	"TRAP",
27
	"TRAP",
Line 198... Line 199...
198
	}else{
199
	}else{
199
		mk_log("Cannot open the directory.");
200
		mk_log("Cannot open the directory.");
200
	}
201
	}
201
}
202
}
202
 
203
 
203
const char* errors[] = {
204
const char* mk_errors[] = {
204
	"Success",
205
	"Success",
205
	"No such service",
206
	"No such service",
206
	"Service is alive",
207
	"Service is alive",
207
	"Failed to start",
208
	"Failed to start",
208
	"Service is dead",
209
	"Service is dead",