Subversion Repositories Mokou

Rev

Rev 10 | Details | Compare with Previous | Last modification | View Log | RSS feed

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