<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://dev1galaxy.org/extern.php?action=feed&amp;tid=5353&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Radicale can't be started using the shipped init script (using OpenRC)]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=5353</link>
		<description><![CDATA[The most recent posts in Radicale can't be started using the shipped init script (using OpenRC).]]></description>
		<lastBuildDate>Fri, 18 Nov 2022 13:15:10 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38720#p38720</link>
			<description><![CDATA[<p>Yeah, such stuff exists. But one wants to install Artix via console tools, and that&#039;s also the only officially supported way. And also the only reasonable one ;-)</p>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Fri, 18 Nov 2022 13:15:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38720#p38720</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38715#p38715</link>
			<description><![CDATA[<div class="quotebox"><cite>l3u wrote:</cite><blockquote><div><p>Artix is a really great distribution imo. There&#039;s no installer though, you set it up just like Gentoo with console tools and you have to know what you&#039;re doing – at least a bit.</p></div></blockquote></div><p>No. If you want to install Artix linux you can use calamares installer. Graphical installation images come with a slightly preconfigured desktop system (LXQt, LXDE, MATE, Cinnamon, KDE/Plasma, XFCE) and a rudimentary set of applications: a file manager, media player (mpv), network manager, document viewer, web browser and the calamares installer. People afraid of the Linux terminal or in need of a quick, intuitive installation would want this ISO.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ogis1975)]]></author>
			<pubDate>Fri, 18 Nov 2022 11:54:25 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38715#p38715</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38707#p38707</link>
			<description><![CDATA[<p>Artix is a really great distribution imo. Almost feels like Gentoo with binary packages ;-) For a desktop computer, I think this is currently the best you can do (if you don&#039;t want Systemd, but this is why we&#039;re here after all I think). At least my wife and my parents are happy with it, and I also use it on my notebook. The maintaining is very easy and it &quot;just works&quot;. There&#039;s no installer though, you set it up just like Gentoo with console tools and you have to know what you&#039;re doing – at least a bit.</p><p>However, I do of course appreciate Devuan a lot for still supporting 32 bit machines, the Raspberry Pi 1 and so on. And by now, I&#039;m about to migrate a server from Gentoo to Devuan (that&#039;s why I found this Radicale issue).</p><p>At the moment, I&#039;m using Devuan, Artix and Gentoo – on different machines with different purposes. And I&#039;m really happy that there are still reasonable people out there who don&#039;t use that Systemd spawn of the devil!</p>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Thu, 17 Nov 2022 23:36:08 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38707#p38707</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38695#p38695</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Btw I really like the way Artix handles this (the other non-systemd and non-Gentoo distro I am using as of recently): There, you have a package without any init scripts, and multiple packages including them, specifically for the init system in use. In case of Radciale, this would be the &quot;radicale&quot; package, and if you want the OpenRC init script, the &quot;radicale-openrc&quot; package.</p></div></blockquote></div><p>I had to read that twice to let the elegance of it soak in.&#160; *That* is the proper approach to supporting interchangeable init systems.&#160; It feels like ... common sense.&#160; I&#039;m happy with my Devuan desktop, but may have to give Artix a spin for fun -- sounds like they have a few beautiful minds on the team.&#160; Thank you for mentioning this.</p>]]></description>
			<author><![CDATA[dummy@example.com (kaiyel)]]></author>
			<pubDate>Thu, 17 Nov 2022 12:29:09 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38695#p38695</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38682#p38682</link>
			<description><![CDATA[<p>Upstream fix is always preferable. <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Wed, 16 Nov 2022 21:15:30 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38682#p38682</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38680#p38680</link>
			<description><![CDATA[<p>Well, let&#039;s hope they fix it. For now, I&#039;m happy that I could get it to work &quot;the Devuan way&quot;, but of course, it would be nice if everybody else would benefit of this. After all, it&#039;s actually a bug, although it possibly only appeared because Debian is sadly only focussing on systemd where they use some unit or whatever to start Radicale, and thus nobody takes care of the init script.</p><p>Btw I really like the way Artix handles this (the other non-systemd and non-Gentoo distro I am using as of recently): There, you have a package without any init scripts, and multiple packages including them, specifically for the init system in use. In case of Radciale, this would be the &quot;radicale&quot; package, and if you want the OpenRC init script, the &quot;radicale-openrc&quot; package.</p><p>Apparently, this doesn&#039;t fit the way Devuan does it, but fixing such a bug like the one here would be no problem, and would not depend on others … however, I hope the Debian guys will fix this.</p>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Wed, 16 Nov 2022 21:06:15 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38680#p38680</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38678#p38678</link>
			<description><![CDATA[<p>Perhaps you could add it to the <span class="bbu"><a href="https://pkginfo.devuan.org/cgi-bin/policy-query.html?c=package&amp;q=init-system-helpers&amp;x=submit" rel="nofollow"> init-system-helpers package</a></span> via <span class="bbu"><a href="https://git.devuan.org/devuan/init-system-helpers" rel="nofollow">Devuan&#039;s git store</a></span> if the Debian maintainer will not cooperate. I think that&#039;s where it should go . . .</p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Wed, 16 Nov 2022 20:00:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38678#p38678</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38677#p38677</link>
			<description><![CDATA[<p>Okay, I replied to that very bug report (here it is: <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017433#10" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … 1017433#10</a> – btw. it surely sucks that the email addresses are displayed as plain text and are not obfuscated in any way. As well as it sucks that this is no real Bugzilla but some strange email driven system. But whatever, maybe I&#039;m too used to how Gentoo handles this stuff ;-).</p><p>Won&#039;t Devuan provide a fixed package if it&#039;s broken on Devuan and Debian doesn&#039;t fix it? The bug report dates back to August …</p>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Wed, 16 Nov 2022 19:31:10 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38677#p38677</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38675#p38675</link>
			<description><![CDATA[<div class="quotebox"><cite>l3u wrote:</cite><blockquote><div><p>EDIT: Oh, I just saw we were cross-posting</p></div></blockquote></div><p>Snap! <img src="http://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><div class="quotebox"><cite>l3u wrote:</cite><blockquote><div><p>What are the chances this will be officially fixed (soonish) in Devuan&#039;s repositories? Can I do anything to help?</p></div></blockquote></div><p>The package originates with Debian so a fix will be dependent on them. The only caveat is that Debian policy allows the maintainer to ignore non-systemd support requests. Hopefully they will want to fix it for all init systems. Updating the bug report with the working version of the patch would probably help.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 16 Nov 2022 18:55:27 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38675#p38675</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38674#p38674</link>
			<description><![CDATA[<p>EDIT: Oh, I just saw we were cross-posting ;-)</p><p>Thanks for this info, I could get it to work with this hint. But the patch doesn&#039;t make it work respectively is not applicable.</p><p>There are more fixes to do. The /etc/default/radicale file contains a non-existant command line option that has to be removed:</p><div class="codebox"><pre><code>--- /etc/default/radicale.orig	2022-11-16 18:47:47.350441509 +0100
+++ /etc/default/radicale	2022-11-16 18:48:07.849614303 +0100
@@ -5,7 +5,7 @@
 
 # Options for radicale on startup
 # Note that most options can be specified in /etc/radicale/config
-RADICALE_OPTS=&quot;--daemon&quot;
+RADICALE_OPTS=&quot;&quot;
 
 # Make initscript verbose, override system default
 # (Note: This is ONLY about the initscript!)</code></pre></div><p>Also, the Devuan init script misses a --background option when starting the daemon. But also when having fixed this, stopping and/or restarting the daemon is broken and also has to be fixed.</p><p>The patch that makes it work would be:</p><div class="codebox"><pre><code>--- /etc/init.d/radicale.orig	2022-11-16 19:06:50.714274017 +0100
+++ /etc/init.d/radicale	2022-11-16 19:33:49.998867023 +0100
@@ -68,10 +68,10 @@
 	fi
 
 	start-stop-daemon --start --quiet --startas $DAEMON \
-		--name $NAME --test &gt; /dev/null \
+		--exec $DAEMON --test &gt; /dev/null \
 		|| return 1
-	start-stop-daemon --start --quiet --startas $DAEMON \
-		--name $NAME --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID -- \
+	start-stop-daemon --start --quiet --startas $DAEMON --background \
+		--exec $DAEMON --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID -- \
 		$RADICALE_OPTS \
 		|| return 2
 }
@@ -86,7 +86,7 @@
 	#   1 if daemon was already stopped
 	#   2 if daemon could not be stopped
 	#   other if a failure occurred
-	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --name $NAME
+	start-stop-daemon --stop --quiet --retry=TERM/30/KILL/5 --user $DAEMON_UID
 }
 
 case &quot;$1&quot; in</code></pre></div><p> What are the chances this will be officially fixed (soonish) in Devuan&#039;s repositories? Can I do anything to help?</p>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Wed, 16 Nov 2022 18:42:14 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38674#p38674</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38669#p38669</link>
			<description><![CDATA[<p>This is a bug in the init script, it also occurs under sysvinit:</p><p><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1017433" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … ug=1017433</a></p><p>^ The bug report includes a patch for the init script :-)</p><p>EDIT: to clarify: you can use the supplied /etc/init.d/radicale script (once patched). There is no need to use an OpenRC script.</p><p>EDIT2: no, it&#039;s a bit more complicated than that...</p><p>Here&#039;s a patch that actually makes the init script start the daemon:</p><div class="codebox"><pre><code>--- radicale.orig	2022-11-16 17:11:10.392000000 +0000
+++ radicale.new	2022-11-16 17:18:52.184000000 +0000
@@ -33,9 +33,6 @@
 # Define LSB log_* functions.
 . /lib/lsb/init-functions
 
-# Declare default options
-RADICALE_OPTS=&quot;--daemon&quot;
-
 # Read configuration variable file if it is present
 [ -r /etc/default/$NAME ] &amp;&amp; . /etc/default/$NAME
 
@@ -68,11 +65,11 @@
 	fi
 
 	start-stop-daemon --start --quiet --startas $DAEMON \
-		--name $NAME --test &gt; /dev/null \
+		--exec $DAEMON --test &gt; /dev/null \
 		|| return 1
 	start-stop-daemon --start --quiet --startas $DAEMON \
-		--name $NAME --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID -- \
-		$RADICALE_OPTS \
+		--exec $DAEMON --umask 0027 --chuid $DAEMON_UID:$DAEMON_GID \
+		--background \
 		|| return 2
 }</code></pre></div><p>But for some reason the LSB block isn&#039;t working — <span class="bbc">update-rc.d</span> doesn&#039;t enable the service and if I enable it manually with <span class="bbc">sysv-rc-conf</span> it doesn&#039;t start.</p><p>What does work is adding this line to /etc/rc.local:</p><div class="codebox"><pre><code>/etc/init.d/radicale start</code></pre></div><p>But that&#039;s so stupid it makes me want to poke my eyes out.</p><p>It would probably be best to add my extra information and anything else you can glean about the problem to the bug report to which I linked earlier. I have no idea why it won&#039;t work <img src="http://dev1galaxy.org/img/smilies/hmm.png" width="15" height="15" alt="hmm" /></p><p>EDIT3: s/gleam/glean/. How embarrassing...</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 16 Nov 2022 16:44:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38669#p38669</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38665#p38665</link>
			<description><![CDATA[<p>I don&#039;t know if this is important, but this happens on a Raspberry Pi 1 using the respective image of Devuan.</p>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Wed, 16 Nov 2022 09:48:42 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38665#p38665</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38664#p38664</link>
			<description><![CDATA[<p>Simply via</p><div class="codebox"><pre><code>/etc/init.d/radicale start</code></pre></div><p>I didn&#039;t change anything … I just took the /etc/radicale directory from my Gentoo machine. I didn&#039;t touch /etc/default/radicale or anything else.</p><p>EDIT:</p><p>I just removed (and purged) Radicale and started over again from scratch. Here&#039;s what happens when I try to start it:</p><div class="codebox"><pre><code># /etc/init.d/radicale start
Starting Radicale CalDAV server : radicale.
# ps -ef | grep radicale
root     23055 22552  0 08:38 pts/0    00:00:00 grep radicale</code></pre></div><p>As said: Nothing happens. The Radicale process is not started …</p><p>This is what happens when using the adapted Gentoo init script, with the Gentoo etc:</p><div class="codebox"><pre><code># /etc/init.d/radicale start
 * Caching service dependencies ...
Error: radicale is the name of a real and virtual service.                                    [ ok ]
 * Starting radicale ...                                                                      [ ok ]
# ps -ef | grep radicale
root     23298     1 94 08:42 ?        00:00:06 /usr/bin/python3 /usr/bin/radicale
root     23307 22552  0 08:42 pts/0    00:00:00 grep radicale</code></pre></div><p>And after restarting it, the error is gone:</p><div class="codebox"><pre><code># /etc/init.d/radicale restart
 * Stopping radicale ...                                                                      [ ok ]
 * Starting radicale ...                                                                      [ ok ]</code></pre></div><p>And after doing so, the original init script interestingly reports an error:</p><div class="codebox"><pre><code># /etc/init.d/radicale_default start
Starting Radicale CalDAV server : radicaleusage: radicale [OPTIONS]
radicale: error: unrecognized arguments: --daemon
 failed!</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Wed, 16 Nov 2022 07:32:45 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38664#p38664</guid>
		</item>
		<item>
			<title><![CDATA[Re: Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38663#p38663</link>
			<description><![CDATA[<div class="quotebox"><cite>l3u wrote:</cite><blockquote><div><p>I couldn&#039;t start Radicale using the shipped init script /etc/init.d/radicale. Nothing happened. No error, no syslog entry, nothing.</p></div></blockquote></div><p>How did you attempt to start Radicale, exactly? The sysvinit script <em>should</em> work.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 16 Nov 2022 06:49:51 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38663#p38663</guid>
		</item>
		<item>
			<title><![CDATA[Radicale can't be started using the shipped init script (using OpenRC)]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=38661#p38661</link>
			<description><![CDATA[<p>Hi All :-)</p><p>I&#039;m about to migrate a server from Gentoo to Devuan. As a Gentoo user, I of course want to use OpenRC :-)</p><p>However, I couldn&#039;t start Radicale using the shipped init script /etc/init.d/radicale. Nothing happened. No error, no syslog entry, nothing.</p><p>I thus tried to use Gentoo&#039;s init script:</p><div class="codebox"><pre><code>#!/sbin/openrc-run
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

PIDFILE=/run/radicale.pid

depend() {
        need localmount
}

start() {
        ebegin &quot;Starting radicale&quot;
                start-stop-daemon --start --quiet --background \
                --user radicale \
                --umask 0027 \
                --stderr-logger /usr/bin/logger \
                --pidfile ${PIDFILE} --make-pidfile \
                --exec /usr/bin/radicale
        eend $?
}

stop() {
        ebegin &quot;Stopping radicale&quot;
                start-stop-daemon --stop --quiet \
                --pidfile ${PIDFILE}
        eend $?
}</code></pre></div><p>Which also didn&#039;t work out of the box – but after having removed the &quot;depend&quot; function and the &quot;--stderr-log&quot; argument, I actually did start Radicale. On the first start, I got &quot;Error: radicale is the name of a real and virtual service.&quot;, but it did start. After restarting it, that error was also gone.</p><p>I tried to reproduce what the original init script did before writing this, but interestingly, I now get an error using it:</p><div class="codebox"><pre><code>Starting Radicale CalDAV server : radicaleusage: radicale [OPTIONS]
radicale: error: unrecognized arguments: --daemon
 failed!</code></pre></div><p>I&#039;m pretty sure this wasn&#039;t there before I tried to use the Gentoo init script …</p><p>All this is a bit strange. Is this the &quot;handwork&quot; that would be necessary when using OpenRC, as the installer told me? I never used anything else than OpenRC, so I am not used to sysvinit init scripts …</p><p>Thanks for all info!</p>]]></description>
			<author><![CDATA[dummy@example.com (l3u)]]></author>
			<pubDate>Wed, 16 Nov 2022 06:27:31 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=38661#p38661</guid>
		</item>
	</channel>
</rss>
