Lines Matching defs:daemon

58  * - listing routing daemon properties
64 * Specifying a routing daemon with no SMF counterpart results in the
65 * daemon, it`s arguments and stop command being set in the appropriate instance
73 * non-SMF routing daemon via
74 * # routeadm -s ipv4-routing-daemon=/usr/sbin/mydaemon
79 * ipv4-routing-daemon/ipv6-routing-daemon to determine if there is an
81 * we move configuration, specifically the associated daemon arguments
82 * to the SMF counterpart. From there, when the daemon is enabled, it
83 * will pick up the daemon arguments setting, transfer the argument string
90 * and set the persistent enabled value to true. This ensures the daemon
92 * enabled instances (and if the daemon is enabled when we issue the enable,
105 * routing daemon case (as opposed to the single ipv4[6]-forwarding
133 * specified via the legacy variables (ipv4-routing-daemon etc).
136 * the legacy services. To do this, we need to match the daemon program
137 * against the routeadm/daemon property of each routing daemon (we use
139 * daemons). If a match is found, the daemon arguments are transferred
140 * to the appropriate service`s daemon-args property, to be picked up
144 * daemon was not upgraded, we need to mark the legacy-routing:ipv4[6]
146 * un-upgradeable legacy daemon.
201 #define RA_VAR_IPV4_ROUTING_DAEMON "ipv4-routing-daemon"
202 #define RA_VAR_IPV4_ROUTING_DAEMON_ARGS "ipv4-routing-daemon-args"
204 #define RA_VAR_IPV6_ROUTING_DAEMON "ipv6-routing-daemon"
205 #define RA_VAR_IPV6_ROUTING_DAEMON_ARGS "ipv6-routing-daemon-args"
225 #define RA_PROP_DAEMON "daemon"
226 #define RA_PROP_DEFAULT_DAEMON "default-daemon"
227 #define RA_PROP_DAEMON_ARGS "daemon-args"
228 #define RA_PROP_DEFAULT_DAEMON_ARGS "default-daemon-args"
229 #define RA_PROP_DAEMON_STOP_CMD "daemon-stop-cmd"
230 #define RA_PROP_DEFAULT_STOP_CMD "default-daemon"
231 #define RA_PROP_LEGACY_DAEMON "legacy-daemon"
422 /* Callbacks used to list/set daemon properties and list daemons and states. */
459 " ipv4-routing-daemon\n"
460 " ipv4-routing-daemon-args\n"
462 " ipv6-routing-daemon\n"
463 " ipv6-routing-daemon-args\n"
827 * daemons. If so, transfer associated daemon arguments.
855 * Retrieve legacy daemon variables, and check if any SMF routing daemons
857 * to the daemon) is transferred to the routeadm/daemon-args property
859 * value and will transfer the daemon arguments to individiual properties
888 * Determine if service runs the same daemon as that which is specified
889 * in ipv4-routing-daemon or ipv6-routing-daemon. If so, the associated
890 * daemon arguments are transferred to the service.
900 char *daemon, *l_daemon = NULL;
913 * legacy instances - if it is, the daemon property is already
914 * set to the legacy daemon.
917 RA_PROP_DAEMON, B_TRUE, B_FALSE, NULL, &daemon) == -1 ||
922 /* A legacy daemon may be defined */
927 * If we match daemon/legacy_daemon with ipv4-routing-daemon or
928 * ipv6-routing-daemon values, transfer daemon-args value
931 if (v4d->var_value != NULL && (strcmp(v4d->var_value, daemon) == 0 ||
933 (void) printf(gettext("%s: migrating daemon configuration "
935 l_daemon : daemon, inst_fmri);
936 /* Transfer daemon-args value, clear legacy v4 values */
949 } else if (v6d->var_value != NULL && (strcmp(v6d->var_value, daemon)
952 (void) printf(gettext("%s: migrating daemon configuration "
954 l_daemon : daemon, inst_fmri);
955 /* Transfer daemon-args value, clear legacy v6 values */
1244 /* If daemon variables are not set, do not display. */
1536 * to starting daemon.
1561 * daemon should be running with the latest
1652 /* Check we are dealing with a routing daemon service */
1694 gettext("%s: %s is not a routing daemon service\n"),
1810 * the "routing" property group for routing daemon services, so all
1828 gettext("%s: %s is not a routing daemon service\n"),
1849 * Display FMRI, state for each routing daemon service.
1862 /* Ensure service is a routing daemon */
2612 return (gettext("IPv4 routing daemon"));
2614 return (gettext("IPv4 routing daemon args"));
2616 return (gettext("IPv4 routing daemon stop"));
2618 return (gettext("IPv6 routing daemon"));
2620 return (gettext("IPv6 routing daemon args"));
2622 return (gettext("IPv6 routing daemon stop"));