summaryrefslogtreecommitdiff
path: root/ace/Service_Config.i
blob: 2940c580a4cdd80fe61c0988bc18b0928b452649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* -*- C++ -*- */
// $Id$

// Service_Config.i

// Become a daemon (i.e., run as a "background" process).

ACE_INLINE int
ACE_Service_Config::start_daemon (void)
{
  ACE_TRACE ("ACE_Service_Config::start_daemon");
  return ACE::daemonize ();
}

// This is the primary entry point into the ACE_Service_Config (the
// constructor just handles simple initializations).

ACE_INLINE int
ACE_Service_Config::open (int argc, char *argv[])
{
  ACE_TRACE ("ACE_Service_Config::open");
  ACE_Service_Config::parse_args (argc, argv);
  return ACE_Service_Config::open (argv[0]);
}

// Compare two service descriptors for equality.

ACE_INLINE int
ACE_Static_Svc_Descriptor::operator== (struct ACE_Static_Svc_Descriptor &d) const
{
  return ACE_OS::strcmp (name_, d.name_) == 0;
}