projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9b579eb
)
Add a description for the Service control panel.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 10 Aug 2003 13:35:05 +0000
(13:35 +0000)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 10 Aug 2003 13:35:05 +0000
(13:35 +0000)
src/process.c
patch
|
blob
|
history
diff --git
a/src/process.c
b/src/process.c
index
1a8592d
..
d08f70f
100644
(file)
--- a/
src/process.c
+++ b/
src/process.c
@@
-17,7
+17,7
@@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
- $Id: process.c,v 1.1.2.7
0 2003/08/08 22:45:46
guus Exp $
+ $Id: process.c,v 1.1.2.7
1 2003/08/10 13:35:05
guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-85,6
+85,7
@@
bool install_service(void) {
char command[4096] = "";
char **argp;
bool space;
char command[4096] = "";
char **argp;
bool space;
+ SERVICE_DESCRIPTION description = {"Virtual Private Network daemon"};
manager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if(!manager) {
manager = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if(!manager) {
@@
-120,6
+121,8
@@
bool install_service(void) {
return false;
}
return false;
}
+ ChangeServiceConfig2(service, SERVICE_CONFIG_DESCRIPTION, &description);
+
logger(LOG_INFO, _("%s service installed"), identname);
if(!StartService(service, 0, NULL))
logger(LOG_INFO, _("%s service installed"), identname);
if(!StartService(service, 0, NULL))