<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=2504&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Equivalent to Systemd Service Unit/Socket]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2504</link>
		<description><![CDATA[The most recent posts in Equivalent to Systemd Service Unit/Socket.]]></description>
		<lastBuildDate>Sat, 01 Dec 2018 07:46:34 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Equivalent to Systemd Service Unit/Socket]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13050#p13050</link>
			<description><![CDATA[<p>Hi Phoen7x,</p><p>why do you need socket activation for epmd at all? AFAIK, the portmapper is started automatically as soon as you run &quot;erl&quot; for any node to be distributed, and shared by all the erlang nodes running on the same machine. It they have changed anything recently and this is not the case any more (which I strongly doubt, knowing how conservative Erlang is and how wary Erlang developers are of not breaking stuff that works for any reason), then you could just start epmd at boot, and leave it there. I don&#039;t remember if epmd supports inetd, though, just in case you really want it to be activated only on demand (but I would be surprised if it didn&#039;t).</p><p>HTH</p><p>KatolaZ</p>]]></description>
			<author><![CDATA[dummy@example.com (KatolaZ)]]></author>
			<pubDate>Sat, 01 Dec 2018 07:46:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13050#p13050</guid>
		</item>
		<item>
			<title><![CDATA[Re: Equivalent to Systemd Service Unit/Socket]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=13007#p13007</link>
			<description><![CDATA[<div class="codebox"><pre><code>iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 5223</code></pre></div><p>i realized through iptables-persistent.</p><p>But for the Systemd Socket for Erlang Port Mapper Daemon (<a href="https://docs.ejabberd.im/admin/guide/security/#epmd" rel="nofollow">epmd</a>) a haven&#039;t got a solution. <img src="https://dev1galaxy.org/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Phoen7x)]]></author>
			<pubDate>Wed, 28 Nov 2018 23:11:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=13007#p13007</guid>
		</item>
		<item>
			<title><![CDATA[Re: Equivalent to Systemd Service Unit/Socket]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12939#p12939</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>What do you mean by that?</p></div></blockquote></div><p>Oh sorry, i mean in the shell:</p><div class="codebox"><pre><code>$ sudo iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 5223</code></pre></div><p>if i check with</p><div class="codebox"><pre><code>$ sudo iptables -t nat -L</code></pre></div><p>they were applied.<br />I write them into a skript in /etc/network/if-pre-up.d/ but after a reboot its flushed.</p><div class="codebox"><pre><code>#!/bin/sh
set -e
iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 5223</code></pre></div><div class="quotebox"><blockquote><div><p>Which is &quot;more complicated&quot; than what here?</p></div></blockquote></div><p>Excuse me, I&#039;ve been working with Devuan for less time, so it&#039;s a bit more complicated than systemd. However, I really wanted to get rid of systemd!<br />My intention is only to <a href="https://docs.ejabberd.im/admin/guide/security/#epmd" rel="nofollow">secure</a> my ejabberd server against empd.</p>]]></description>
			<author><![CDATA[dummy@example.com (Phoen7x)]]></author>
			<pubDate>Sat, 24 Nov 2018 12:56:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12939#p12939</guid>
		</item>
		<item>
			<title><![CDATA[Re: Equivalent to Systemd Service Unit/Socket]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12938#p12938</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>When I write the first few lines in my firewall script, they are not executed.</p></div></blockquote></div><p>What do you mean by that?<br />Which are your &quot;first few lines in my firewall script&quot;?<br />And where do you write them?<br />Are you confused about how to run the redirection rule by hand?</p><div class="quotebox"><blockquote><div><p>The second seems a bit more complicated</p></div></blockquote></div><p>Which is &quot;more complicated&quot; than what here?</p><p>Isn&#039;t it that you want your machine set up such that a certain program runs upon tcp connection to a certain port, with that socket IO being standard input/output for the program? Since that notion is almost as old as me, there are more than a few ways available for it, including those packages, as well as direct approaches using <span class="bbc">nc</span> or <span class="bbc">socat</span>.</p><p>I think I would do this by adding a start-up script to start the port service when I log in to the desktop management system, with the particular port service I have chosen; probably using <span class="bbc">micro-inetd</span>, which has this as its central use case. If I would find myself wanting similar but different set ups for several ports, I would probably eventually move over to be using <span class="bbc">openbsd-inetd</span> instead. But I know folks that certainly would make other choices.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 24 Nov 2018 04:40:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12938#p12938</guid>
		</item>
		<item>
			<title><![CDATA[Re: Equivalent to Systemd Service Unit/Socket]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12935#p12935</link>
			<description><![CDATA[<p>Thank you for your response.<br />When I write the first few lines in my firewall script, they are not executed. The second seems a bit more complicated?<br />Can you explain that in more detail?</p>]]></description>
			<author><![CDATA[dummy@example.com (Phoen7x)]]></author>
			<pubDate>Fri, 23 Nov 2018 23:42:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12935#p12935</guid>
		</item>
		<item>
			<title><![CDATA[Re: Equivalent to Systemd Service Unit/Socket]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12927#p12927</link>
			<description><![CDATA[<p>The first facility is traditionally serviced by loading the&#160; <span class="bbc">netfilter-persistent</span> package.</p><p>The second facility is traditionally serviced by the <span class="bbc">openbsd-inetd</span> package, which also has a number of &quot;improved&quot; variants on the scale from the minimalistic <span class="bbc">micro-inetd</span> to the &quot;gruesomely over-featured inetd replacement&quot; <span class="bbc">rlinetd</span> package.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 23 Nov 2018 21:12:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12927#p12927</guid>
		</item>
		<item>
			<title><![CDATA[Equivalent to Systemd Service Unit/Socket]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=12920#p12920</link>
			<description><![CDATA[<p>Hello everybody,<br />I would like to realize the following service unit with SysV Init, or with a shell skript. Unfortunately, I could not find any help on the net. Is this possible at all?</p><p>First:</p><div class="codebox"><pre><code>nano /etc/systemd/system/xmpp-port-redirection.service</code></pre></div><div class="codebox"><pre><code>[Unit]
Description=Port redirection rules for XMPP
After=network.target

[Service]
Type=oneshot
RemainAfterExit=true
ExecStart=/sbin/iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 5223
ExecStop=/sbin/iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 443 -j REDIRECT --to-port 5223</code></pre></div><p>Second:<br />i would like to have something like a Systemd Socket for Erlang Port Mapper Daemon (epmd).</p><div class="codebox"><pre><code>nano /etc/systemd/system/epmd.socket.d/listen-on-localhost.conf</code></pre></div><div class="codebox"><pre><code>[Socket]
ListenStream=127.0.0.1:4369</code></pre></div><p>Is that possible with SysV Init?</p><p>Thank you. <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Phoen7x)]]></author>
			<pubDate>Fri, 23 Nov 2018 19:26:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=12920#p12920</guid>
		</item>
	</channel>
</rss>
