<?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=4448&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Missing init scripts]]></title>
		<link>http://dev1galaxy.org/viewtopic.php?id=4448</link>
		<description><![CDATA[The most recent posts in Missing init scripts.]]></description>
		<lastBuildDate>Mon, 30 Aug 2021 22:36:04 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Missing init scripts]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=31224#p31224</link>
			<description><![CDATA[<p>I&#039;m a bit puzzled here, at least in respect of dnscrypt-proxy.</p><p>Certainly the deb for Beowulf Stable ( dnscrypt-proxy 2.0.19+ds1-2+devuan4) has a working init script (/etc/init.d/dnscrypt-proxy). I know, I use it.</p><p>Of course this init version may have been provided by the Devuan developers, not by Debian. </p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh
### BEGIN INIT INFO
# Provides:          dnscrypt-proxy
# Required-Start:    $remote_fs
# Required-Stop:     $remote_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: DNSCrypt client proxy
# Description:       Encrypted/authenticated DNS proxy
### END INIT INFO

cmd=&quot;/usr/sbin/dnscrypt-proxy -config /etc/dnscrypt-proxy/dnscrypt-proxy.toml&quot;

name=$(basename $(readlink -f $0))
pid_file=&quot;/var/run/$name.pid&quot;
stdout_log=&quot;/var/log/$name.log&quot;
stderr_log=&quot;/var/log/$name.err&quot;

get_pid() {
    cat &quot;$pid_file&quot;
}

is_running() {
    [ -f &quot;$pid_file&quot; ] &amp;&amp; ps $(get_pid) &gt; /dev/null 2&gt;&amp;1
}

case &quot;$1&quot; in
    start)
        if is_running; then
            echo &quot;Already started&quot;
        else
            echo &quot;Starting $name&quot;
	    if  [ ! -d /var/cache/dnscrypt-proxy/ ]; then
		mkdir /var/cache/dnscrypt-proxy
	    fi
            cd &#039;/root&#039;
            $cmd &gt;&gt; &quot;$stdout_log&quot; 2&gt;&gt; &quot;$stderr_log&quot; &amp;
            echo $! &gt; &quot;$pid_file&quot;
            if ! is_running; then
                echo &quot;Unable to start, see $stdout_log and $stderr_log&quot;
                exit 1
            fi
        fi
    ;;
    stop)
        if is_running; then
            echo -n &quot;Stopping $name..&quot;
            kill $(get_pid)
            for i in $(seq 1 10)
            do
                if ! is_running; then
                    break
                fi
                echo -n &quot;.&quot;
                sleep 1
            done
            echo
            if is_running; then
                echo &quot;Not stopped; may still be shutting down or shutdown may have failed&quot;
                exit 1
            else
                echo &quot;Stopped&quot;
                if [ -f &quot;$pid_file&quot; ]; then
                    rm &quot;$pid_file&quot;
                fi
            fi
        else
            echo &quot;Not running&quot;
        fi
    ;;
    force-reload|restart)
        $0 stop
        if is_running; then
            echo &quot;Unable to stop, will not attempt to start&quot;
            exit 1
        fi
        $0 start
    ;;
    status)
        if is_running; then
            echo &quot;Running&quot;
        else
            echo &quot;Stopped&quot;
            exit 1
        fi
    ;;
    *)
    echo &quot;Usage: $0 {start|stop|restart|status}&quot;
    exit 1
    ;;
esac
exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Marjorie)]]></author>
			<pubDate>Mon, 30 Aug 2021 22:36:04 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=31224#p31224</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing init scripts]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=31084#p31084</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>This package is in debian and devuan:<br />orphan-sysvinit-scripts</p><div class="codebox"><pre><code>apt-file list orphan-sysvinit-scripts
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/dnscrypt-proxy</code></pre></div></div></blockquote></div><p>Fo my dnscrypt-proxy I use this tweaked dsnscrypt-proxy (all parameters are in the .conf) file.:</p><div class="codebox"><pre class="vscroll"><code>#! /bin/sh
### BEGIN INIT INFO
# Provides:          dnscrypt-proxy
# Required-Start:    $local_fs $network
# Required-Stop:     $local_fs
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: dnscrypt-proxy
# Description:       dnscrypt-proxy secure DNS client
### END INIT INFO

PATH=/usr/sbin:/usr/bin:/sbin:/bin
#####DAEMON=/usr/local/sbin/dnscrypt-proxy
DAEMON=/usr/sbin/dnscrypt-proxy
NAME=dnscrypt-proxy
########RESOLVER=dnscrypt.eu-nl

case &quot;$1&quot; in
    start)
        echo &quot;Starting $NAME&quot;
        #####$DAEMON --daemonize --ephemeral-keys --user=dnscrypt \
                #####--local-address=127.0.0.1 --resolver-name=$RESOLVER
        # $DAEMON --daemonize --ephemeral-keys --user=dnscrypt \
        #       --local-address=127.0.0.2 --resolver-name=$RESOLVER2
    $DAEMON /home/thierrybo/.config/dnscrypt-proxy/dnscrypt-proxy.conf
        ;;
    stop)
        echo &quot;Stopping $NAME&quot;
        pkill -f $DAEMON
        ;;
    restart)
        $0 stop
        $0 start
        ;;
    *)
        echo &quot;Usage: /etc/init.d/dnscrypt-proxy {start|stop|restart}&quot;
        exit 1
        ;;
esac

exit 0</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (thierrybo)]]></author>
			<pubDate>Sun, 22 Aug 2021 15:45:04 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=31084#p31084</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing init scripts]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=31080#p31080</link>
			<description><![CDATA[<p>This package is in debian and devuan:<br />orphan-sysvinit-scripts</p><div class="codebox"><pre><code>apt-file list orphan-sysvinit-scripts
orphan-sysvinit-scripts: /usr/lib/orphan-sysvinit-scripts/mapping
orphan-sysvinit-scripts: /usr/lib/orphan-sysvinit-scripts/update_init_d.sh
orphan-sysvinit-scripts: /usr/share/doc/orphan-sysvinit-scripts/README.Debian
orphan-sysvinit-scripts: /usr/share/doc/orphan-sysvinit-scripts/changelog.gz
orphan-sysvinit-scripts: /usr/share/doc/orphan-sysvinit-scripts/copyright
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/dirsrv
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/dirsrv.md5sum
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/dnscrypt-proxy
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/dnscrypt-proxy.md5sum
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/gpsd
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/gpsd.md5sum
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/iwd
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/iwd.md5sum
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/network-manager
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/network-manager.md5sum
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/nftables
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/nftables.md5sum
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/tomcat9
orphan-sysvinit-scripts: /usr/share/orphan-sysvinit-scripts/tomcat9.md5sum</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sun, 22 Aug 2021 01:30:03 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=31080#p31080</guid>
		</item>
		<item>
			<title><![CDATA[Re: Missing init scripts]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=31004#p31004</link>
			<description><![CDATA[<div class="quotebox"><cite>DevuanUser345 wrote:</cite><blockquote><div><p>I wonder what the Devuan strategy is for this problem</p></div></blockquote></div><p><a href="https://dev1galaxy.org/viewforum.php?id=25" rel="nofollow">https://dev1galaxy.org/viewforum.php?id=25</a></p><p>Feel free to contribute <img src="http://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 08 Aug 2021 21:07:22 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=31004#p31004</guid>
		</item>
		<item>
			<title><![CDATA[Missing init scripts]]></title>
			<link>http://dev1galaxy.org/viewtopic.php?pid=30999#p30999</link>
			<description><![CDATA[<p>Hello guys,</p><p>I read a few days ago that more and more Debian packages are being built without Sysvinit scripts (if I remember correctly, there are currently more than 1100 packages). For the reason that Devuan is taking the packages from Debian, I wonder what the Devuan strategy is for this problem.</p><p>regards</p>]]></description>
			<author><![CDATA[dummy@example.com (DevuanUser345)]]></author>
			<pubDate>Sun, 08 Aug 2021 19:19:17 +0000</pubDate>
			<guid>http://dev1galaxy.org/viewtopic.php?pid=30999#p30999</guid>
		</item>
	</channel>
</rss>
