Subversion Repositories Mokou

Rev

Rev 4 | Rev 10 | 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 5 2024-09-07 08:42:09Z 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);
2 nishi 21
 
22
#endif