<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: How to Use Systemd to Run Bash Scripts at Boot in Linux	</title>
	<atom:link href="https://www.tecmint.com/create-new-service-units-in-systemd/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.tecmint.com/create-new-service-units-in-systemd/</link>
	<description>Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks.</description>
	<lastBuildDate>Fri, 25 Apr 2025 09:39:55 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	
	<item>
		<title>
		By: Ravi Saive		</title>
		<link>https://www.tecmint.com/create-new-service-units-in-systemd/comment-page-1/#comment-2300467</link>

		<dc:creator><![CDATA[Ravi Saive]]></dc:creator>
		<pubDate>Fri, 25 Apr 2025 09:33:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18928#comment-2300467</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.tecmint.com/create-new-service-units-in-systemd/comment-page-1/#comment-2300437&quot;&gt;Andras&lt;/a&gt;.

@Andras,

Great point! SELinux can definitely cause unexpected issues if the right context isn&#039;t set - especially on RHEL-based systems.

To make it permanent, consider using semanage:
&lt;pre&gt;
semanage fcontext -a -t bin_t /root/scripts/conup.sh  
restorecon -v /root/scripts/conup.sh
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>In reply to <a target="_blank" href="https://www.tecmint.com/create-new-service-units-in-systemd/comment-page-1/#comment-2300437">Andras</a>.</p>
<p>@Andras,</p>
<p>Great point! SELinux can definitely cause unexpected issues if the right context isn&#8217;t set &#8211; especially on RHEL-based systems.</p>
<p>To make it permanent, consider using semanage:</p>
<pre>
semanage fcontext -a -t bin_t /root/scripts/conup.sh  
restorecon -v /root/scripts/conup.sh
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Andras		</title>
		<link>https://www.tecmint.com/create-new-service-units-in-systemd/comment-page-1/#comment-2300437</link>

		<dc:creator><![CDATA[Andras]]></dc:creator>
		<pubDate>Fri, 25 Apr 2025 07:00:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18928#comment-2300437</guid>

					<description><![CDATA[If you&#039;re using &lt;strong&gt;RHEL&lt;/strong&gt;, don’t forget about &lt;strong&gt;SELinux&lt;/strong&gt; contexts - they can block scripts from running if not set correctly.

For example, to allow your script to run, use:
&lt;pre&gt;
chcon -t bin_t /root/scripts/conup.sh
&lt;/pre&gt;
This sets the correct SELinux type (&lt;code&gt;bin_t&lt;/code&gt;) so the system treats it like a regular executable.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re using <strong>RHEL</strong>, don’t forget about <strong>SELinux</strong> contexts &#8211; they can block scripts from running if not set correctly.</p>
<p>For example, to allow your script to run, use:</p>
<pre>
chcon -t bin_t /root/scripts/conup.sh
</pre>
<p>This sets the correct SELinux type (<code>bin_t</code>) so the system treats it like a regular executable.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Joe B		</title>
		<link>https://www.tecmint.com/create-new-service-units-in-systemd/comment-page-1/#comment-1536260</link>

		<dc:creator><![CDATA[Joe B]]></dc:creator>
		<pubDate>Sat, 03 Jul 2021 17:16:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18928#comment-1536260</guid>

					<description><![CDATA[When I run systemctl start I get the following error message:

Changed on disk. Run &lt;strong&gt;systemctl daemon-reload&lt;/strong&gt; to reload units. 

Then when I run a &lt;strong&gt;systemctl status&lt;/strong&gt; the output on the active line says:
&lt;pre&gt;
failed 
&lt;/pre&gt;
my.service file entials
&lt;pre&gt;
[Unit]
Description = connecting private node to master

[Service]
ExecStart = /bin/bash /usr/lib/systemd/system/

[Install]
WantedBy = multi-user.target
&lt;/pre&gt;]]></description>
			<content:encoded><![CDATA[<p>When I run systemctl start I get the following error message:</p>
<p>Changed on disk. Run <strong>systemctl daemon-reload</strong> to reload units. </p>
<p>Then when I run a <strong>systemctl status</strong> the output on the active line says:</p>
<pre>
failed 
</pre>
<p>my.service file entials</p>
<pre>
[Unit]
Description = connecting private node to master

[Service]
ExecStart = /bin/bash /usr/lib/systemd/system/

[Install]
WantedBy = multi-user.target
</pre>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: one flops		</title>
		<link>https://www.tecmint.com/create-new-service-units-in-systemd/comment-page-1/#comment-1337411</link>

		<dc:creator><![CDATA[one flops]]></dc:creator>
		<pubDate>Sun, 14 Jun 2020 08:00:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18928#comment-1337411</guid>

					<description><![CDATA[what is run level 0 again? rescue? since when?]]></description>
			<content:encoded><![CDATA[<p>what is run level 0 again? rescue? since when?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sanjay Chopra		</title>
		<link>https://www.tecmint.com/create-new-service-units-in-systemd/comment-page-1/#comment-1334189</link>

		<dc:creator><![CDATA[Sanjay Chopra]]></dc:creator>
		<pubDate>Mon, 18 May 2020 09:23:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.tecmint.com/?p=18928#comment-1334189</guid>

					<description><![CDATA[How to add commands to run when someone calls for &quot;&lt;strong&gt;stop&lt;/strong&gt;&quot; or &quot;&lt;strong&gt;restart&lt;/strong&gt;&quot;.]]></description>
			<content:encoded><![CDATA[<p>How to add commands to run when someone calls for &#8220;<strong>stop</strong>&#8221; or &#8220;<strong>restart</strong>&#8220;.</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
