<?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=2339&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / How i must write "openrc-run" script for launch boot service?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2339</link>
		<description><![CDATA[The most recent posts in How i must write "openrc-run" script for launch boot service?.]]></description>
		<lastBuildDate>Sun, 02 Sep 2018 12:27:04 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11621#p11621</link>
			<description><![CDATA[<p>I cant help much with the init script writing.&#160; Hopefully someone else can help.&#160; </p><p>I think the mpd script is using the sed command to generate a pid file name.&#160; I dont think you need to do that.&#160; Some scripts just use a hard-coded pid file name.</p><p>If you look at some of the other init scripts such as rsyslog or cups; they use start-stop-daemon to run and the pid file is used as a parm.&#160; </p><p>Sorry I cant be of much help here.</p>]]></description>
			<author><![CDATA[dummy@example.com (dxrobertson)]]></author>
			<pubDate>Sun, 02 Sep 2018 12:27:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11621#p11621</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11620#p11620</link>
			<description><![CDATA[<div class="quotebox"><cite>dxrobertson wrote:</cite><blockquote><div><p>OpenRC logging may help with init process problems.&#160; You can enable logging in /etc/rc.conf.&#160; The log file will be /var/log/rc.log&quot;.</p><p>To enable OpenRC logging, edit /etc/rc.conf:</p><div class="codebox"><pre><code>rc_logger=&quot;YES&quot; 
rc_verbose=yes</code></pre></div></div></blockquote></div><div class="codebox"><pre class="vscroll"><code> cat /var/log/rc.log 
rc sysinit logging started at Sun Sep  2 08:15:57 2018

   OpenRC 0.13.1 is starting up Linux 3.16.0-6-amd64 (x86_64)

 * /proc is already mounted
 * /run/openrc: creating directory
 * /run/lock: correcting mode
 * /run/lock: correcting owner
[....] Starting the hotplug events dispatcher: udevd[ ok .
[....] Synthesizing the initial hotplug events...[ ok done.
[....] Waiting for /dev to be fully populated...[ ok done.
[....] Setting parameters of disc: (none)[ ok .
[....] Setting preliminary keymap...[ ok done.
[....] Activating swap...[ ok done.
[....] btrfs root detected, so skipping root file system check. ...[warn (warning).
[....] Setting up LVM Volume Groups...  No volume groups found
[ ok done.
[....] Activating lvm and md swap...[ ok done.
[....] Checking file systems...fsck from util-linux 2.25.2
Compartido: clean, 579517/39321600 files, 145635887/157286400 blocks
Slack64: clean, 427214/2940928 files, 3838220/11748352 blocks
Slack32: clean, 329559/2940928 files, 1923647/11747584 blocks
1SlackIni: clean, 964/65536 files, 113016/262144 blocks
2SlackIni: clean, 942/65808 files, 22250/263168 blocks
[ ok done.
[....] Cleaning up temporary files... /tmp[ ok .
[....] Mounting local filesystems...[ ok done.
[....] Activating swapfile swap...[ ok done.
[....] Cleaning up temporary files...[ ok .
[....] Setting kernel variables ...[ ok done.
[....] Setting up resolvconf...[ ok done.
[....] Configuring network interfaces...[ ok done.
[....] Cleaning up temporary files...[ ok .
[....] Setting up ALSA...[ ok done.
[info] Setting console screen modes.
etting up console font and keymap...[ ok done.
[info] Loading kernel module lp.
[info] Loading kernel module ppdev.
[info] Loading kernel module parport_pc.
[info] Loading kernel module vboxdrv.
[info] Loading kernel module fuse.
[info] Loading kernel module vhba.
[....] Setting sensors limits[ ok .
[....] Skip starting firewall: ufw (not enabled)...[ ok done.
[....] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix[ ok .

rc sysinit logging stopped at Sun Sep  2 08:15:57 2018

rc default logging started at Sun Sep  2 08:15:57 2018

[....] Starting enhanced syslogd: rsyslogd[ ok .
[....] Starting ACPI services...[ ok .
[....] Starting anac(h)ronistic cron: anacron[ ok .
[....] Starting web server: apache2[ ok .
[....] Starting deferred execution scheduler: atd[ ok .
[....] Starting system message bus: dbus[ ok .
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[ ok .
[....] Enabling additional executable binary formats: binfmt-support[ ok .
[....] Starting the Winbind daemon: winbind[ ok .
[....] Starting periodic command scheduler: cron[ ok .
[....] Starting Common Unix Printing System: cupsd[ ok .
[....] Starting CUPS Bonjour daemon: cups-browsed[ ok .
[....] Starting DirMngr: dirmngr[ ok .
[....] Starting mouse interface server: gpm[ ok .
[....] Starting SMP IRQ Balancer: irqbalance[ ok .
[....] Starting libvirt management daemon: libvirtd[ ok .
[....] Updating the system logo...[ ok done.
[....] Starting UPnP devices daemon: MiniSSDPd[ ok .
[....] Starting XSP 4.0 WebServer: mono-xsp4[ ok .
[....] Starting Music Player Daemon: mpd[ ok .
[....] Starting network connection manager: NetworkManager[ ok .
[....] Starting NetBIOS name server: nmbd[ ok .
Iniciando noip2.
[....] Starting NTP server: ntpd[ ok .
[....] Starting Postfix Mail Transport Agent: postfix[ ok .
[....] saned disabled; edit /etc/default/saned[ ok .
[....] Starting slim: slim[ ok .
[....] Starting SMB/CIFS daemon: smbd[ ok .
[....] Starting SNMP services::  snmpd[....] Starting OpenBSD Secure Shell server: sshd[ ok .
[....] Starting SSHGuard Server: sshguard enabling firewall[ ok .
[....] Starting TiMidity++ ALSA midi emulation...[ ok .
[....] Starting uuid generator: uuidd[ ok .
[....] Starting FTP server: vsftpd[ ok .
[....] Starting internet superserver: xinetd[ ok .

rc default logging stopped at Sun Sep  2 08:16:42 2018</code></pre></div><p>This morning i purge some packages of sysvinit installed on my distro, anothers i dont use like upstart, plymouth, mdadm, cryptset or something similar.</p><p>Well i copy /etc/init.d/mpd to /etc/init.d/noip2 and i start the modifications. but one part i can&#039;t understand fine :</p><p>ok the main modification was things like : </p><p>MPDCONF=/etc/mpd.conf by NOIP2CONF=/usr/etc/no-ip2.conf<br />DAEMON=/usr/bin/noip2</p><p>and well the unique thing i don&#039;t understand what do is the line :<br />PIDFILE=$(sed -n &#039;s/^[[:space:]]*pid_file[[:space:]]*&quot;\?\([^&quot;]*\)\&quot;\?/\1/p&#039; $MPDCONF)</p><p>because with mpd :</p><div class="codebox"><pre><code>echo $PIDFILE
/run/mpd/pid</code></pre></div><p>if i try with my modification<br />PIDFILE=$(sed -n &#039;s/^[[:space:]]*pid_file[[:space:]]*&quot;\?\([^&quot;]*\)\&quot;\?/\1/p&#039; $NOIP2CONF)</p><div class="codebox"><pre><code>echo $PIDFILE
                  </code></pre></div><p>nothing happened.</p><p>Well i try to make accord to the system. but i change at the final i just let the file with the follow content :</p><div class="codebox"><pre class="vscroll"><code>#!/bin/sh

### BEGIN INIT INFO
# Provides:          noip2
# Required-Start:    $local_fs
# Required-Stop:     $local_fs
# Should-Start:      autofs $network
# Should-Stop:       autofs $network
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: NoIP
# Description:       Inicia el Servicio noip2
#                    Para conectarse a traves de internet usando un nombre y no la IP{v4,6}
### END INIT INFO

. /lib/lsb/init-functions

PATH=/sbin:/bin:/usr/sbin:/usr/bin
NAME=noip2
DESC=&quot;noip2&quot;
DAEMON=/usr/bin/noip2

# Exit if the package is not installed
[ -x &quot;$DAEMON&quot; ] || exit 0

#PIDFILE=$(sed -n &#039;s/^[[:space:]]*pid_file[[:space:]]*&quot;\?\([^&quot;]*\)\&quot;\?/\1/p&#039; $NOIP2CONF)
PIDFILE=$(mkdir -p /run/noip2 ; echo &quot;$RANDOM&quot; &gt;&gt; pid)
noip2_start () {
	echo &quot;Iniciando noip2.&quot;
        &quot;$DAEMON&quot; 2&gt;/dev/null
}

noip2_stop () {
	echo -n &quot;Finalizando noip2 : &quot;
	kill -15 $(pgrep noip2)
}

# note to self: don&#039;t call the non-standard args for this in
# {post,pre}{inst,rm} scripts since users are not forced to upgrade
# /etc/init.d/noip2 when noip2 is updated
case &quot;$1&quot; in
    start)
        noip2_start
        ;;
    stop)
        noip2_stop
        ;;
    restart)
        noip2_stop
        noip2_start
        ;;
    *)
        echo &quot;Usage: $0 {start|stop|restart}&quot;
        exit 2
        ;;
esac</code></pre></div><p>now in the /var/log/boot</p><div class="codebox"><pre><code>Sun Sep  2 07:53:13 2018: [....] Starting Music Player Daemon: mpd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
Sun Sep  2 07:53:23 2018: [....] Starting network connection manager: NetworkManager^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
Sun Sep  2 07:53:24 2018: [....] Starting NetBIOS name server: nmbd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
Sun Sep  2 07:53:24 2018: Iniciando noip2.
Sun Sep  2 07:53:25 2018: [....] Starting NTP server: ntpd^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.
Sun Sep  2 07:53:26 2018: [....] Starting Postfix Mail Transport Agent: postfix^[[?25l^[[?1c^[7^[[1G[^[[32m ok ^[[39;49m^[8^[[?25h^[[?0c.</code></pre></div><p>during boot the another process show<br />[ ok ] &lt;service&gt;</p><p>i try to make it equal with my noip2 script, but i can&#039;t understand the PIDFILE and what do the sed in that variable.</p>]]></description>
			<author><![CDATA[dummy@example.com (inukaze)]]></author>
			<pubDate>Sun, 02 Sep 2018 12:05:32 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11620#p11620</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11619#p11619</link>
			<description><![CDATA[<p>OpenRC logging may help with init process problems.&#160; You can enable logging in /etc/rc.conf.&#160; The log file will be /var/log/rc.log&quot;.</p><p>To enable OpenRC logging, edit /etc/rc.conf:</p><div class="codebox"><pre><code>rc_logger=&quot;YES&quot; 
rc_verbose=yes</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dxrobertson)]]></author>
			<pubDate>Sun, 02 Sep 2018 11:50:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11619#p11619</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11612#p11612</link>
			<description><![CDATA[<div class="codebox"><pre><code>$ sudo rc-update show | grep no
            mono-xsp4 |      default                              
                noip2 |      default                              
            rmnologin |      default</code></pre></div><div class="codebox"><pre><code>$ sudo rc-status -a | grep no
 mono-xsp4                                                         [  started  ]
 rmnologin                                                         [  started  ]</code></pre></div><div class="codebox"><pre><code>$ sudo rc-service noip2 start</code></pre></div><p>Not show nothing</p><div class="codebox"><pre><code>$ sudo rc-update add noip2 default
 * rc-update: noip2 already installed in runlevel `default&#039;; skipping</code></pre></div><div class="codebox"><pre class="vscroll"><code>$ sudo rc-service noip2 stop
 * Caching service dependencies ...
 * Found a solvable dependency loop: cryptdisks a&gt; umountfs u&gt; hwclock.sh a&gt; checkroot n&gt; cryptdisks-early a&gt; lvm2 u&gt; cryptdisks.
 * Found a solvable dependency loop: cryptdisks a&gt; umountfs u&gt; hwclock.sh a&gt; checkroot n&gt; cryptdisks.
 * Found a solvable dependency loop: cryptdisks a&gt; umountfs u&gt; hwclock.sh a&gt; checkroot n&gt; cryptdisks-early n&gt; cryptdisks.
 * Solving the loop by breaking umountfs u&gt; hwclock.sh.
 * Solving the loop by breaking lvm2 u&gt; cryptdisks.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; single u&gt; stop-bootlogd u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; single u&gt; stop-bootlogd u&gt; stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; single u&gt; stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; stop-bootlogd u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; stop-bootlogd u&gt; stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; rmnologin u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; single u&gt; stop-bootlogd u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; single u&gt; stop-bootlogd u&gt; stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; single u&gt; stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd u&gt; stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd-single u&gt; rc.local.
 * Solving the loop by breaking rc.local u&gt; rmnologin.
 * Solving the loop by breaking single u&gt; stop-bootlogd.
 * Solving the loop by breaking rmnologin u&gt; single.
 * Solving the loop by breaking stop-bootlogd u&gt; rc.local.
 * Solving the loop by breaking stop-bootlogd-single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd-single u&gt; rmnologin u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd-single u&gt; single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd u&gt; rmnologin u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd u&gt; stop-bootlogd-single u&gt; rmnologin u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd u&gt; single u&gt; rc.local.
 * Found a solvable dependency loop: rc.local u&gt; stop-bootlogd u&gt; stop-bootlogd-single u&gt; single u&gt; rc.local.
 * Solving the loop by breaking rc.local u&gt; stop-bootlogd-single.
 * Solving the loop by breaking stop-bootlogd u&gt; rmnologin.
 * Solving the loop by breaking single u&gt; rc.local.
 * Solving the loop by breaking stop-bootlogd-single u&gt; rmnologin.
 * Solving the loop by breaking rmnologin u&gt; rc.local.
 * Found a solvable dependency loop: rmnologin u&gt; stop-bootlogd u&gt; single u&gt; rmnologin.
 * Found a solvable dependency loop: rmnologin u&gt; stop-bootlogd u&gt; stop-bootlogd-single u&gt; single u&gt; rmnologin.
 * Found a solvable dependency loop: rmnologin u&gt; stop-bootlogd-single u&gt; single u&gt; rmnologin.
 * Solving the loop by breaking single u&gt; rmnologin.
 * Solving the loop by breaking rmnologin u&gt; stop-bootlogd.
 * Solving the loop by breaking stop-bootlogd u&gt; single.
 * Found a solvable dependency loop: single u&gt; stop-bootlogd-single u&gt; single.
 * Solving the loop by breaking stop-bootlogd-single u&gt; single.
 * Found a solvable dependency loop: stop-bootlogd u&gt; stop-bootlogd-single u&gt; stop-bootlogd.
 * Solving the loop by breaking stop-bootlogd-single u&gt; stop-bootlogd.                          [ ok ]</code></pre></div><div class="codebox"><pre><code>$ sudo rc-service noip2 start ; ps -A | grep noip
 5100 ?        00:00:00 noip2</code></pre></div><p>Well let me restart to test the changes. because with manual start using rc-service, now run <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /><br />The Process don&#039;t run automatically at boot. i don&#039;t understand why.<br />but right now, i not got errors with noip2 during boot process.</p>]]></description>
			<author><![CDATA[dummy@example.com (inukaze)]]></author>
			<pubDate>Sat, 01 Sep 2018 23:02:15 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11612#p11612</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11601#p11601</link>
			<description><![CDATA[<p>OK, you are using OpenRC.</p><p>I am guessing that noip2 is an init script, and that it is supposed to run the actual program noip?&#160; Assuming so...</p><p>There should be a noip2 script in /etc/init.d, does it exist?&#160; If so, is it formatted correctly, similar to the other scripts in /etc/init.d?&#160; You can post the contents if you like.</p><p>OpenRC commands you can use, you can post the output here if you like:</p><p>display all init scripts and what runlevel they run under:</p><div class="codebox"><pre><code>rc-update show</code></pre></div><p>noip2 should display</p><p>display what is setup to run by runlevel</p><div class="codebox"><pre><code>rc-status -a</code></pre></div><p>noip2 should display as started</p><p>manually run noip2</p><div class="codebox"><pre><code>rc-service noip2 start</code></pre></div><p>set noip2 to run automatically under runlevel default</p><div class="codebox"><pre><code>rc-update add noip2 default</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dxrobertson)]]></author>
			<pubDate>Sat, 01 Sep 2018 12:16:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11601#p11601</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11597#p11597</link>
			<description><![CDATA[<div class="codebox"><pre><code>$ cat /etc/init.d/rcS
#!/bin/sh
# Wrapper of OpenRC called from inittab

set -e
exec /sbin/openrc sysinit</code></pre></div><div class="codebox"><pre><code>$ cat /etc/inittab
# Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (inukaze)]]></author>
			<pubDate>Sat, 01 Sep 2018 09:57:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11597#p11597</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11594#p11594</link>
			<description><![CDATA[<p>Confused.</p><p>Your original post states &quot;How i must write &quot;openrc-run&quot; script for launch boot service?&quot;.&#160; Assuming OpenRC is the init process.</p><p>But you used the command &quot;sudo service noip2 start&quot;, which is a sysvinit command.</p><p>OpenRC or sysvinit?</p><p>Please post contents of&#160; /etc/init.d/rcS.&#160; OpenRC should be:</p><div class="codebox"><pre><code>#!/bin/sh
# Wrapper of OpenRC called from inittab

set -e
exec /sbin/openrc sysinit</code></pre></div><p>It might help to also post /etc/inittab, should have:</p><div class="codebox"><pre><code># Boot-time system configuration/initialization script.
# This is run first except when booting in emergency (-b) mode.
si::sysinit:/etc/init.d/rcS</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (dxrobertson)]]></author>
			<pubDate>Fri, 31 Aug 2018 23:52:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11594#p11594</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11590#p11590</link>
			<description><![CDATA[<p>ah. of course. </p><p>If you&#039;ve done the set up as @dxrobertson mentioned, maybe the problem is that the <span class="bbc">noip2</span> daemon needs some configuration that is missing? E.g., should it have &quot;-i IPaddress&quot; on the command line? Though, I must admit I know less about <span class="bbc">noip2</span> than is written at <span class="bbu"><a href="https://github.com/jamesstout/no-ip/blob/master/README.FIRST" rel="nofollow">https://github.com/jamesstout/no-ip/blo … ADME.FIRST</a></span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 31 Aug 2018 10:49:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11590#p11590</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11588#p11588</link>
			<description><![CDATA[<p>That are a command to generate the script from cli. its not directly the script. the first line inside the script is :</p><div class="codebox"><pre><code>#!/sbin/openrc-run</code></pre></div><p>if you read the lines, you see at the end, the command :</p><div class="codebox"><pre><code>sudo tee /etc/init.d/noip2 ; sudo chmod a+rx /etc/init.d/noip2</code></pre></div><p>For generate the file and make executable for all users.</p>]]></description>
			<author><![CDATA[dummy@example.com (inukaze)]]></author>
			<pubDate>Fri, 31 Aug 2018 09:37:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11588#p11588</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11587#p11587</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>echo &#039;#!/sbin/openrc-run</p></div></blockquote></div><p>is an unusual first line for a script. Or was it a mistake when copying to here? Otherwise you should remove the first 6 characters, so that the very first character is the &quot;#&quot; character. Or equally, make it so to say:</p><div class="codebox"><pre><code>#!/sbin/openrc-run</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 31 Aug 2018 06:53:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11587#p11587</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11585#p11585</link>
			<description><![CDATA[<p>The problem is the noip2 don&#039;t start at boot anymore, after the last upgrade, when the runscript dont exist anymore in /sbin/runinit, instead follow gentoo wiki, i should use openrc-run for the shebang in the first line.</p>]]></description>
			<author><![CDATA[dummy@example.com (inukaze)]]></author>
			<pubDate>Fri, 31 Aug 2018 01:57:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11585#p11585</guid>
		</item>
		<item>
			<title><![CDATA[Re: How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11583#p11583</link>
			<description><![CDATA[<p>I am not sure exactly what your problem is, but here is how OpenRC init process are run. </p><p>OpenRC init scripts need to be in /etc/init.d/, this is what &quot;runs&quot;.</p><p>OpenRC runlevels are defined in /etc/runlevels/, you need a symlink here under the desired runlevel pointing to the script in /etc/init.d/ so the script gets run.</p><p>Once you have the script in /etc/init.d/, you enter &quot;rc-update add &lt;service&gt; &lt;runlevel&gt;&quot; where &lt;service&gt; is your script name in /etc/init.d/ and &lt;runlevel&gt; is your desired runlevel under /etc/runlevel.</p><p>From your post, it seems you need some sort of &quot;noip&quot; startup script in /etc/init.d, and then perform the rc-update add noip default (for default runlevel, or whatever runlevel).</p>]]></description>
			<author><![CDATA[dummy@example.com (dxrobertson)]]></author>
			<pubDate>Fri, 31 Aug 2018 00:13:27 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11583#p11583</guid>
		</item>
		<item>
			<title><![CDATA[How i must write "openrc-run" script for launch boot service?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=11582#p11582</link>
			<description><![CDATA[<p>Hi there. some days ago, i post this thread -&gt; <a href="https://dev1galaxy.org/viewtopic.php?id=2306" rel="nofollow">https://dev1galaxy.org/viewtopic.php?id=2306</a> <br />and well yesterday i upgrade the software on my Devuan Jessie.</p><p>Right now, the Service don&#039;t start at boot. the first was the &quot;/sbin/runscript&quot; don&#039;t exist anymore<br />the second is i modify the first line on the script, there are the command to generate the script :</p><div class="codebox"><pre><code>echo &#039;#!/sbin/openrc-run

description=&quot;Start/Stop the no-ip daemon&quot;

depend()
{
        after *
        keyword notimeout
}

start()
{
        ebegin &quot;Starting NoIP&quot;

        /usr/bin/noip2

        eend $? &quot;Failed to start NoIP&quot;
}

stop()
{
        ebegin &quot;Stopping NoIP&quot;

        killall -TERM /usr/bin/noip2

        eend $? $&quot;Failed to stop NoIP&quot;
}&#039; | sudo tee /etc/init.d/noip2 ; sudo chmod a+rx /etc/init.d/noip2</code></pre></div><p>and right now in the /var/log/boot :</p><div class="codebox"><pre><code>Thu Aug 30 18:31:38 2018:  ^[[1m^[[31m*^[[m noip2: not enough arguments^[[K
Thu Aug 30 18:31:38 2018:  ^[[1m^[[31m*^[[m ERROR: noip2 failed to start^[[K</code></pre></div><p>when i reach my desktop environment and i try to run it directly from cli :</p><div class="codebox"><pre><code>sudo service noip2 start
 * WARNING: noip2 has already been started

ps -A | grep noip</code></pre></div><p>the &quot;noip2&quot; is not running. with the old version of runscript works perfectly. but right now i don&#039;t have idea how to make it work.</p>]]></description>
			<author><![CDATA[dummy@example.com (inukaze)]]></author>
			<pubDate>Thu, 30 Aug 2018 22:53:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=11582#p11582</guid>
		</item>
	</channel>
</rss>
