<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>service startup error &#8211; Blue Lance</title>
	<atom:link href="https://bluelance.com/docs-tag/service-startup-error/feed/" rel="self" type="application/rss+xml" />
	<link>https://bluelance.com</link>
	<description></description>
	<lastBuildDate>Mon, 01 Jun 2026 19:30:58 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://bluelance.com/wp-content/uploads/2025/11/fevicon-ic-1.png</url>
	<title>service startup error &#8211; Blue Lance</title>
	<link>https://bluelance.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Managing the NSS Audit Service</title>
		<link>https://bluelance.com/docs/managing-the-nss-audit-service/</link>
		
		<dc:creator><![CDATA[peter thomas]]></dc:creator>
		<pubDate>Thu, 28 May 2026 16:24:19 +0000</pubDate>
				<guid isPermaLink="false">https://bluelance.com/?post_type=docs&#038;p=15918</guid>

					<description><![CDATA[Once the NSS Audit Agent is installed and configured on an OES server, day-to-day management of the ltaudit service is straightforward. This article covers how to start, stop, restart, and check the status of the NSS Audit Agent service using both systemctl and the built-in control script, and when to use each management action. Understanding [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Once the NSS Audit Agent is installed and configured on an OES server, day-to-day management of the ltaudit service is straightforward. This article covers how to start, stop, restart, and check the status of the NSS Audit Agent service using both systemctl and the built-in control script, and when to use each management action.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Understanding the ltaudit service:</strong></p>



<p class="wp-block-paragraph">The ltaudit service is the NSS Audit Agent daemon that runs continuously on each OES server, collecting NSS file activity and forwarding it to the LT Auditor <sup>MP</sup> server via syslog. It is registered with systemd during installation and can be managed using standard systemctl commands or the agent&#8217;s built-in control script located at /opt/bluelance/bin/ltaudit.rc.</p>



<p class="wp-block-paragraph">Both management methods produce the same result — use whichever is more familiar or appropriate for your environment.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>When you need to manage the service:</strong></p>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><strong>Situation</strong></td><td><strong>Action Required</strong></td></tr><tr><td>Agent not forwarding events to LT Auditor <sup>MP</sup></td><td>Check status, restart if stopped</td></tr><tr><td>Configuration changes made via update_syslog_config.sh</td><td>Restart to apply new settings</td></tr><tr><td>OES server maintenance or reboot</td><td>Stop before maintenance, confirm restart after</td></tr><tr><td>Agent upgrade or package update</td><td>Stop before upgrade, start after</td></tr><tr><td>Troubleshooting forwarding or connectivity issues</td><td>Stop and restart to reset connections</td></tr><tr><td>Confirming agent is healthy after a server reboot</td><td>Check status</td></tr></tbody></table></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Checking service status:</strong></p>



<p class="wp-block-paragraph">Always check the service status first before taking any other management action — it tells you whether the service is running, stopped, or in an error state.</p>



<p class="wp-block-paragraph"><strong>Using systemctl:</strong></p>



<p class="wp-block-paragraph">systemctl status ltaudit.service</p>



<p class="wp-block-paragraph"><strong>Using the control script:</strong></p>



<p class="wp-block-paragraph">/opt/bluelance/bin/ltaudit.rc status</p>



<p class="wp-block-paragraph"><strong>Interpreting the status output:</strong></p>



<figure class="wp-block-table"><table class="has-fixed-layout"><tbody><tr><td><strong>Status</strong></td><td><strong>Description</strong></td><td><strong>Action Required</strong></td></tr><tr><td>active (running)</td><td>Service is running normally</td><td>None</td></tr><tr><td>inactive (dead)</td><td>Service is stopped</td><td>Start the service</td></tr><tr><td>failed</td><td>Service encountered an error and stopped</td><td>Review logs and restart</td></tr><tr><td>activating</td><td>Service is in the process of starting</td><td>Wait and check again</td></tr></tbody></table></figure>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Starting the service:</strong></p>



<p class="wp-block-paragraph">If the service is stopped and needs to be started:</p>



<p class="wp-block-paragraph"><strong>Using systemctl:</strong></p>



<p class="wp-block-paragraph">systemctl start ltaudit.service</p>



<p class="wp-block-paragraph"><strong>Using the control script:</strong></p>



<p class="wp-block-paragraph">/opt/bluelance/bin/ltaudit.rc start</p>



<p class="wp-block-paragraph">After starting, confirm the service is running:</p>



<p class="wp-block-paragraph">systemctl status ltaudit.service</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Stopping the service:</strong></p>



<p class="wp-block-paragraph">If the service needs to be stopped for maintenance, configuration changes, or troubleshooting:</p>



<p class="wp-block-paragraph"><strong>Using systemctl:</strong></p>



<p class="wp-block-paragraph">systemctl stop ltaudit.service</p>



<p class="wp-block-paragraph"><strong>Using the control script:</strong></p>



<p class="wp-block-paragraph">/opt/bluelance/bin/ltaudit.rc stop</p>



<p class="wp-block-paragraph">Stopping the service suspends NSS file activity collection on that server. Any events that occur while the service is stopped will not be captured. Stop the service only when necessary and restart it as soon as possible to minimize monitoring gaps.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Restarting the service:</strong></p>



<p class="wp-block-paragraph">Restart the service to apply configuration changes or reset connections to the LT Auditor <sup>MP</sup> server:</p>



<p class="wp-block-paragraph"><strong>Using systemctl:</strong></p>



<p class="wp-block-paragraph">systemctl restart ltaudit.service</p>



<p class="wp-block-paragraph"><strong>Using the control script:</strong></p>



<p class="wp-block-paragraph">/opt/bluelance/bin/ltaudit.rc stop</p>



<p class="wp-block-paragraph">/opt/bluelance/bin/ltaudit.rc start</p>



<p class="wp-block-paragraph">After restarting, confirm the service returns to an active (running) state:</p>



<p class="wp-block-paragraph">systemctl status ltaudit.service</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Enabling automatic startup on boot:</strong></p>



<p class="wp-block-paragraph">To ensure the ltaudit service starts automatically when the OES server reboots, enable it with systemctl:</p>



<p class="wp-block-paragraph">systemctl enable ltaudit.service</p>



<p class="wp-block-paragraph">Confirm the service is enabled:</p>



<p class="wp-block-paragraph">systemctl is-enabled ltaudit.service</p>



<p class="wp-block-paragraph">The output should return enabled. If it returns disabled, run the enable command again.</p>



<p class="wp-block-paragraph">Enabling automatic startup is strongly recommended for all production OES servers. Without it, NSS audit collection will not resume after a server reboot until an administrator manually starts the service — potentially leaving a significant monitoring gap.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Disabling automatic startup on boot:</strong></p>



<p class="wp-block-paragraph">If automatic startup needs to be disabled (e.g., for a server being decommissioned):</p>



<p class="wp-block-paragraph">systemctl disable ltaudit.service</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Reviewing service logs:</strong></p>



<p class="wp-block-paragraph">If the service fails to start or is behaving unexpectedly, review the agent logs for error details:</p>



<p class="wp-block-paragraph"><strong>General application logs:</strong></p>



<p class="wp-block-paragraph">ls /opt/bluelance/logs/</p>



<p class="wp-block-paragraph"><strong>NSS audit status log:</strong></p>



<p class="wp-block-paragraph">cat /opt/bluelance/log/nssstatus.log</p>



<p class="wp-block-paragraph"><strong>Syslog forwarding log:</strong></p>



<p class="wp-block-paragraph">cat /opt/bluelance/log/syslog_send.log</p>



<p class="wp-block-paragraph"><strong>systemd journal (for service startup errors):</strong></p>



<p class="wp-block-paragraph">journalctl -u ltaudit.service -n 50</p>



<p class="wp-block-paragraph">The -n 50 flag returns the last 50 log entries. Increase this number if you need to look further back.</p>



<p class="wp-block-paragraph">Common errors to look for:</p>



<ul class="wp-block-list">
<li>Connection refused — firewall blocking syslog port</li>



<li>Certificate errors — TLS configuration issue</li>



<li>Permission denied — agent lacks required access to NSS volumes</li>



<li>Failed to open live vigil file — NSS audit subsystem not available</li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Service management after a configuration change:</strong></p>



<p class="wp-block-paragraph">Whenever the syslog forwarding configuration is updated using update_syslog_config.sh, restart the service to apply the new settings:</p>



<p class="wp-block-paragraph">systemctl restart ltaudit.service</p>



<p class="wp-block-paragraph">Confirm the service is running after the restart, then verify that events are appearing in LT Auditor <sup>MP</sup> to confirm the new configuration is working correctly.</p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<p class="wp-block-paragraph"><strong>Best practices:</strong></p>



<ul class="wp-block-list">
<li>Always check the service status before investigating log collection issues — a stopped service is the most common cause of missing NSS audit data</li>



<li>Enable automatic startup on boot on every production OES server to prevent monitoring gaps after reboots</li>



<li>Restart rather than stop-and-start when applying configuration changes — it is faster and reduces the monitoring gap</li>



<li>Review the nssstatus.log and syslog_send.log as the first step when troubleshooting collection or forwarding issues</li>



<li>Include systemctl status ltaudit.service in your regular OES server health check routine alongside other service checks</li>



<li>Document any planned service interruptions (maintenance windows, upgrades) so the security team is aware of expected monitoring gaps</li>
</ul>



<p class="wp-block-paragraph"><em>[Your administrator should include </em><em>ltaudit</em><em> service status in any OES server monitoring dashboards or health check scripts used in your environment.]</em></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
