2012-02-19 11:59:22 +00:00
|
|
|
|
2012-02-19 12:53:41 +00:00
|
|
|
/** Enterprise Control Configuration and Logging
|
2012-02-19 11:59:22 +00:00
|
|
|
|
2012-02-19 12:53:41 +00:00
|
|
|
Copyright (C) 2012 Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
Written by: Richard Frith-Macdonald <rfm@gnu.org>
|
|
|
|
Date: Febrary 2010
|
|
|
|
Originally developed from 1996 to 2012 by Brainstorm, and donated to
|
|
|
|
the FSF.
|
|
|
|
|
|
|
|
This file is part of the GNUstep project.
|
|
|
|
|
|
|
|
This library is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU Lesser General Public
|
|
|
|
License as published by the Free Software Foundation; either
|
|
|
|
version 3 of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This library is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
Library General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU Lesser General Public
|
|
|
|
License along with this library; if not, write to the Free
|
|
|
|
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
|
|
|
|
Boston, MA 02111 USA.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
|
|
#import "EcProcess.h"
|
2012-02-19 11:59:22 +00:00
|
|
|
|
2012-02-19 14:42:50 +00:00
|
|
|
#if !defined(EC_BASE_CLASS)
|
|
|
|
#define EC_BASE_CLASS EcConsole
|
2012-02-19 11:59:22 +00:00
|
|
|
#endif
|
|
|
|
|
2012-10-28 12:32:35 +00:00
|
|
|
/* Create a fake interface to satisfy compiler ...
|
|
|
|
*/
|
|
|
|
@interface EC_BASE_CLASS : EcProcess
|
|
|
|
@end
|
2012-02-19 11:59:22 +00:00
|
|
|
|
|
|
|
void
|
|
|
|
inner_main()
|
|
|
|
{
|
|
|
|
NSAutoreleasePool *arp;
|
2012-03-16 11:00:41 +00:00
|
|
|
NSDictionary *defs;
|
2021-06-30 08:45:33 +00:00
|
|
|
int status;
|
2012-02-19 11:59:22 +00:00
|
|
|
|
2012-02-19 14:42:50 +00:00
|
|
|
arp = [NSAutoreleasePool new];
|
2012-02-19 11:59:22 +00:00
|
|
|
cmdVersion(@"$Date: 2012-02-13 08:11:49 +0000 (Mon, 13 Feb 2012) $ $Revision: 65934 $");
|
|
|
|
|
2012-03-16 11:00:41 +00:00
|
|
|
defs = [NSDictionary dictionaryWithObjectsAndKeys:
|
2012-03-16 11:19:17 +00:00
|
|
|
@"NO", @"Daemon",
|
2020-06-24 12:26:31 +00:00
|
|
|
@"YES", @"Transient",
|
2012-03-16 11:00:41 +00:00
|
|
|
#if defined(EC_REGISTRATION_DOMAIN)
|
|
|
|
EC_REGISTRATION_DOMAIN
|
|
|
|
#endif
|
|
|
|
nil];
|
|
|
|
|
|
|
|
if (nil != [[EC_BASE_CLASS alloc] initWithDefaults: defs])
|
2012-02-19 14:42:50 +00:00
|
|
|
{
|
|
|
|
[arp release];
|
|
|
|
arp = [NSAutoreleasePool new];
|
2012-02-19 11:59:22 +00:00
|
|
|
|
2012-03-09 09:22:09 +00:00
|
|
|
[EcProc ecRun];
|
2012-02-19 14:42:50 +00:00
|
|
|
}
|
2021-06-30 08:45:33 +00:00
|
|
|
status = [EcProc ecQuitStatus];
|
2012-02-19 11:59:22 +00:00
|
|
|
[arp release];
|
2021-06-30 08:45:33 +00:00
|
|
|
exit(status);
|
2012-02-19 11:59:22 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
|
|
|
inner_main();
|
|
|
|
return 0;
|
|
|
|
}
|