Go to main content

Managing System Services in Oracle® Solaris 11.4

Exit Print View

Updated: Febuary 2019
 
 

Modifying Services that are Controlled by inetd

A service that is controlled by inetd is an SMF service that was converted from a configuration in the inetd.conf file. The inetd command is the delegated restarter for these services.

The following procedure shows how to change property values of services that are controlled by inetd.

To confirm that the service you want to modify is controlled by inetd, use either the inetadm command or the svcs -R command as shown in the following examples to list all inetd controlled services. The following examples show only a partial list:

$ inetadm
ENABLED   STATE          FMRI
enabled   online         svc:/application/cups/in-lpd:default
...
disabled  disabled       svc:/application/x11/xvnc-inetd:default
$ svcs -R network/inetd:default
STATE     STIME          FMRI
online    8:11:10        svc:/application/cups/in-lpd:default
...
online    8:11:11        svc:/network/rpc/smserver:default

The -l option of the inetadm command lists all the properties of the inetd controlled service. In the following example, the error message indicates that the specified service is not an inetd controlled service. “No restarter property” means that the master restarter, svc.startd, manages the service instance.

$ inetadm -l ssh
Error: Specified service instance "svc:/network/ssh:default" has no restarter
property.  inetd is not the delegated restarter of this instance.

Similarly, in the following example, the message “Couldn't find property 'general/restarter'” indicates that the default restarter, svc.startd, manages the service instance.

$ svcprop -p general/restarter ssh
svcprop: Couldn't find property 'general/restarter' for instance
'svc:/network/ssh:default'.

If a service is controlled by inetd, its restarter is inetd, as shown in the following example:

$ svcprop -p general/restarter cups/in-lpd
svc:/network/inetd:default

The svcs -l command also shows the restarter. The following example shows only partial output:

$ svcs -l cups/in-lpd
...
restarter    svc:/network/inetd:default
...