Page MenuHomeDevCentral

Enable oidentd service
ClosedPublic

Authored by dereckson on Feb 20 2022, 12:50.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 08:09
Unknown Object (File)
Tue, Nov 5, 01:38
Unknown Object (File)
Mon, Nov 4, 03:06
Unknown Object (File)
Mon, Nov 4, 03:06
Unknown Object (File)
Mon, Nov 4, 01:36
Unknown Object (File)
Sun, Nov 3, 21:10
Unknown Object (File)
Sun, Oct 27, 16:56
Unknown Object (File)
Fri, Oct 25, 19:46
Subscribers
None

Details

Summary

On WindRiver, oidentd is installed but service is disabled:

$ /usr/local/etc/rc.d/oidentd status
Cannot 'status' oidentd. Set oidentd_enable to YES in /etc/rc.conf
or use 'onestatus' instead of 'status'.

$ /usr/local/etc/rc.d/oidentd onestatus
oidentd is not running.

This change enables the service.

Ref T1683.

Test Plan

Check service is enabled and running on WindRiver.

Diff Detail

Repository
rOPS Nasqueron Operations
Lint
Lint Passed
Unit
No Test Coverage
Branch
devserver-oidentd
Build Status
Buildable 3974
Build 4226: arc lint + arc unit

Event Timeline

dereckson created this revision.

Seems service.running works fine on FreeBSD, so we can use this more generously across the configuration as currently, we've a lot of {% if services['manager'] == 'systemd' %}.

WindRiver - test
$ sudo salt-call --local state.sls_id oidentd_service_config roles/shellserver/userland-software/irc test=True
local:
----------
          ID: oidentd_service_config
    Function: service.running
        Name: oidentd
      Result: None
     Comment: Service oidentd is set to start
     Started: 12:52:24.407992
    Duration: 39.009 ms
     Changes:   

Summary for local
------------
Succeeded: 1 (unchanged=1)
Failed:    0
------------
Total states run:     1
Total run time:  39.009 ms
WindRiver - apply
$ sudo salt-call --local state.sls_id oidentd_service_config roles/shellserver/userland-software/irc
local:
----------
          ID: oidentd_service_config
    Function: service.running
        Name: oidentd
      Result: True
     Comment: Service oidentd has been enabled, and is running
     Started: 12:53:37.612648
    Duration: 159.262 ms
     Changes:   
              ----------
              oidentd:
                  True

Summary for local
------------
Succeeded: 1 (changed=1)
Failed:    0
------------
Total states run:     1
Total run time: 159.262 ms

$ /usr/local/etc/rc.d/oidentd status
oidentd is running as pid 78577.
WindRiver - idempotence
$ sudo salt-call --local state.sls_id oidentd_service_config roles/shellserver/userland-software/irc                                                                       (git)-[arcpatch-D2540] 
local:
----------
          ID: oidentd_service_config
    Function: service.running
        Name: oidentd
      Result: True
     Comment: The service oidentd is already running
     Started: 12:54:00.690512
    Duration: 39.297 ms
     Changes:   

Summary for local
------------
Succeeded: 1
Failed:    0
------------
Total states run:     1
Total run time:  39.297 ms
This revision is now accepted and ready to land.Feb 20 2022, 12:57
dereckson retitled this revision from Enable oidentd on devserver to Enable oidentd service.Feb 20 2022, 12:58
dereckson edited the test plan for this revision. (Show Details)
This revision was automatically updated to reflect the committed changes.