Tara Subedi 922928bbec After restarting gpsd.service, the /dev/ttyACM0.pty file becomes inaccessible
In presence of gnss-monitor ptp-instance monitoring a device (/dev/ttyACM0),
gpspipe@.service connects to gpsd daemon and provides NMEA output in
/dev/ttyACM0.pty file. When gpsd.service daemon restarted, gpspipe@.service
exits with success return-code and not restarted, causing the output
file unavailable.

This commit fixes the issue by restarting the gpspipe@.service always,
whether the return-code be success or failure.

Test Plan:
  PASS: Deploy gnss-monitor ptp-instance with device /dev/ttyACM0
        - /dev/ttyACM0.pty file is accessible
        - systemctl restart gpsd.service
          /dev/ttyACM0.pty file accessible.
          gpspipe@-dev-ttyACM0.service is running (get restarted)
  PASS: stop gpsd.service, gpspipe service automatically restarts
        gpsd.service too, and /dev/ttyACM0.pty file accessible
  PASS: stop gpsd.socket, gpspipe service keep restarting, until
        gpsd.socket started again.
  PASS: Test same as above for two devices, after following:
       system ptp-instance-parameter-delete gnss0 'devices=/dev/ttyACM0'
       system ptp-instance-parameter-add gnss0 'devices=/dev/ttyACM0 /dev/ttyACM1'
       system ptp-instance-apply

Closes-bug: 2126965

Change-Id: I445f99e548b96b0bbee4d35dfa31e2c4e3c768ca
Signed-off-by: Tara Nath Subedi <tara.subedi@windriver.com>
2025-10-06 16:30:58 -04:00
2021-02-19 12:14:38 -06:00
2019-09-09 14:52:12 -05:00
2019-09-09 14:52:12 -05:00

stx-puppet

The starlingx/stx-puppet repository handles the Puppet service1.

The Puppet service runs during bootstrap, and at every reboot, to provide a consistent configuration across the StarlingX system nodes.

This repository is not intended to be developed standalone, but rather as part of the StarlingX Source System, which is defined by the StarlingX manifest2.

References


  1. https://www.puppet.com↩︎

  2. https://opendev.org/starlingx/manifest.git↩︎

Description
StarlingX Puppet modules and manifests
Readme 22 MiB
Languages
Puppet 59.2%
Python 21.4%
HTML 7.5%
Shell 6.8%
Ruby 4.5%
Other 0.6%