<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Mjid on Medium]]></title>
        <description><![CDATA[Stories by Mjid on Medium]]></description>
        <link>https://medium.com/@abde.asouab?source=rss-c1081b3dace6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*5fyCZlMDwu2bkGSJmUjnUw.jpeg</url>
            <title>Stories by Mjid on Medium</title>
            <link>https://medium.com/@abde.asouab?source=rss-c1081b3dace6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 18:00:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@abde.asouab/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ensuring Continuous Running of a Spring Jar File on a Server — Systemd Configuration]]></title>
            <link>https://medium.com/@abde.asouab/ensuring-continuous-running-of-a-spring-jar-file-on-a-server-systemd-configuration-ade847de1b42?source=rss-c1081b3dace6------2</link>
            <guid isPermaLink="false">https://medium.com/p/ade847de1b42</guid>
            <category><![CDATA[systemctl]]></category>
            <category><![CDATA[services]]></category>
            <category><![CDATA[java]]></category>
            <category><![CDATA[systemd]]></category>
            <category><![CDATA[spring-boot]]></category>
            <dc:creator><![CDATA[Mjid]]></dc:creator>
            <pubDate>Sun, 05 Feb 2023 12:24:51 GMT</pubDate>
            <atom:updated>2025-08-24T14:59:15.324Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ensuring Continuous Running of a Spring Jar File on a Server , Systemd Configuration</h3><p>Introduction:</p><p>One of the ways to ensure that a Spring Jar file does not stop running on a server is to use a process manager. One popular process manager on Linux systems is systemd. In this section, we&#39;ll look at how to configure systemd to automatically restart a Spring Jar file if it stops running.</p><p>Steps:</p><ol><li>Create a new unit file for your application:</li></ol><p>Create a new unit file in /etc/systemd/system and name it app.service.</p><p>2. Configure the unit file:</p><p>In the unit file, specify the command to start your Spring Jar file and set the Restart property to always. For example:</p><pre>[Unit]<br>Description=A descreption for my spring application<br><br>[Service]<br>ExecStart=/usr/bin/java -jar /path/to/app.jar<br>Restart=always<br><br>[Install]<br>WantedBy=multi-user.target</pre><p>3. Reload the systemd configuration:</p><p>Run the following command to reload the systemd configuration:</p><pre>sudo systemctl daemon-reload</pre><p>4. Start the service:</p><p>Start the service by running the following command:sqlCopy code</p><pre>sudo systemctl start app.service</pre><p>5. Enable the service:</p><p>To ensure that the service starts automatically after a reboot, run the following command:</p><pre>sudo systemctl enable app.service</pre><p>Conclusion:</p><p>By following these steps, systemd will start your Spring Jar file and automatically restart it if it stops running. This helps ensure the continuous running of your application on the server.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ade847de1b42" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>