git://git.iain.cx/iain
/
nssm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow editing services.
[nssm.git]
/
service.h
diff --git
a/service.h
b/service.h
index
dc1715b
..
3460625
100644
(file)
--- a/
service.h
+++ b/
service.h
@@
-17,7
+17,10
@@
\r
#define ACTION_LEN 16
\r
\r
\r
#define ACTION_LEN 16
\r
\r
+#define NSSM_LOCALSYSTEM_ACCOUNT _T("LocalSystem")
\r
+
\r
typedef struct {
\r
typedef struct {
\r
+ bool native;
\r
TCHAR name[SERVICE_NAME_LENGTH];
\r
TCHAR displayname[SERVICE_DISPLAYNAME_LENGTH];
\r
TCHAR description[VALUE_LENGTH];
\r
TCHAR name[SERVICE_NAME_LENGTH];
\r
TCHAR displayname[SERVICE_DISPLAYNAME_LENGTH];
\r
TCHAR description[VALUE_LENGTH];
\r
@@
-27,6
+30,7
@@
typedef struct {
TCHAR *password;
\r
size_t passwordlen;
\r
unsigned long type;
\r
TCHAR *password;
\r
size_t passwordlen;
\r
unsigned long type;
\r
+ TCHAR image[MAX_PATH];
\r
TCHAR exe[EXE_LENGTH];
\r
TCHAR flags[VALUE_LENGTH];
\r
TCHAR dir[MAX_PATH];
\r
TCHAR exe[EXE_LENGTH];
\r
TCHAR flags[VALUE_LENGTH];
\r
TCHAR dir[MAX_PATH];
\r
@@
-85,8
+89,10
@@
void cleanup_nssm_service(nssm_service_t *);
SC_HANDLE open_service_manager();
\r
int pre_install_service(int, TCHAR **);
\r
int pre_remove_service(int, TCHAR **);
\r
SC_HANDLE open_service_manager();
\r
int pre_install_service(int, TCHAR **);
\r
int pre_remove_service(int, TCHAR **);
\r
+int pre_edit_service(int, TCHAR **);
\r
int install_service(nssm_service_t *);
\r
int remove_service(nssm_service_t *);
\r
int install_service(nssm_service_t *);
\r
int remove_service(nssm_service_t *);
\r
+int edit_service(nssm_service_t *, bool);
\r
void set_service_recovery(nssm_service_t *);
\r
int monitor_service(nssm_service_t *);
\r
int start_service(nssm_service_t *);
\r
void set_service_recovery(nssm_service_t *);
\r
int monitor_service(nssm_service_t *);
\r
int start_service(nssm_service_t *);
\r