<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[HyperForum — Sinit]]></title>
	<link rel="self" href="https://forums.hyperbola.info/extern.php?action=feed&amp;tid=1062&amp;type=atom" />
	<updated>2024-11-27T09:17:09Z</updated>
	<generator>PunBB</generator>
	<id>https://forums.hyperbola.info/viewtopic.php?id=1062</id>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8457#p8457" />
			<content type="html"><![CDATA[<p>the core of hyperbsd must of course concentrate on one thing and do it well, which is now runit. I have used that init on void and joborun, albeit always only for a few weeks. It is certainly quite stable and far from heavy.</p><p>The main usage of sinit I see in microcontrollers and in containered services. Not without reason, sinit was the default of morpheus and StaLin, both designed for microcontrollers. Both of these fields are outside or even far beyond the scope of Hyperbola.</p>]]></content>
			<author>
				<name><![CDATA[schilling.klaus]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=607</uri>
			</author>
			<updated>2024-11-27T09:17:09Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8457#p8457</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8456#p8456" />
			<content type="html"><![CDATA[<p>We have tested sinit for further integration as especially its size is promising. So we have also a working integration for the start and I can say: You will need surely to port many scripts for sinit and it is not possible to use openrc-based scripts (for sure not). The runit-scripts are therefore compatible under some conditions (depends on when special users are needed, then they are not working).</p><p>We have cancelled the integration as it would be too much work on-going while keeping the focus away from our roadmap. Inclusion of daemontools-encore was / is also part of the work. But our current daemontools-package is absolutely enough for its original intention here at Hyperbola.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2024-11-24T14:28:23Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8456#p8456</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8455#p8455" />
			<content type="html"><![CDATA[<p>I see that daemontools-encore, suggested a few posts above, is not in our archives, while the more primitive daemontools is. </p><p>Another alternative is perp, used along with sinit in Oasis, a musl-based linux distribution by M. Forney, relying on static compilation and mostly suckless applications. </p><p>I have heard that the supervision suites of runit or s6 can also be used side by side with sinit. </p><p>In any case, providing the necessary scripts for many different services will be the major non-trivial task. Simply copying from other distributions will not always work well.</p>]]></content>
			<author>
				<name><![CDATA[schilling.klaus]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=607</uri>
			</author>
			<updated>2024-11-24T11:38:48Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8455#p8455</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8411#p8411" />
			<content type="html"><![CDATA[<p>From my current perspective: First towards the point HyperbolaBSD ... yes, this will be for sure similar. But second as sinit is most planned and done POSIX-compliant it should also work ported. Seems though it was not done so this could be an interesting field for the future also.</p><p>For HyperbolaBSD itself runit is planned nevertheless to be the provided init-system forward.</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2024-10-24T11:33:44Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8411#p8411</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8409#p8409" />
			<content type="html"><![CDATA[<p>Sinit is linux specific and will not be available on HyperBSD, will it? The BSD-systems I know have a hardwired pid0 but offer some alternative service management and rc implementations in their collections of ports, while others may work as well but require some work. I guess the situation in HyperBSD will or should be similar.</p>]]></content>
			<author>
				<name><![CDATA[schilling.klaus]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=607</uri>
			</author>
			<updated>2024-10-24T11:30:42Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8409#p8409</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8086#p8086" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>jim wrote:</cite><blockquote><p>This is great because few people here use this environment.&nbsp; I&#039;m also trying to set up so I can post the setup here, that&#039;s what I&#039;m going for (this is an example with a BSD system)</p></blockquote></div><p>Thanks, we can talk about it if you want in &quot;Bringing my .cwmrc to Hyperbola&quot; thread.</p><br /><div class="quotebox"><cite>throgh wrote:</cite><blockquote><p>Thank you. How do you manage generic services after the system starts? This would be a good example therefore. Likewise:</p><p>dhcpcd or slim</p></blockquote></div><p>I don&#039;t know, but I start them manually like &quot;sdhcp -d enp2s0&quot; or &quot;sx&quot;: <a href="https://github.com/Earnestly/sx.">https://github.com/Earnestly/sx.</a> Normally it should be daemontools-encore: <a href="http://troubleshooters.com/linux/diy/suckless_init_on_plop.htm.">http://troubleshooters.com/linux/diy/su … _plop.htm.</a></p>]]></content>
			<author>
				<name><![CDATA[benyouyou]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=694</uri>
			</author>
			<updated>2024-06-03T19:10:06Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8086#p8086</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8084#p8084" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>benyouyou wrote:</cite><blockquote><p>Yes, I do</p></blockquote></div><p>This is great because few people here use this environment.&nbsp; I&#039;m also trying to set up so I can post the setup here, that&#039;s what I&#039;m going for (this is an example with a BSD system)</p><p><span class="postimg"><img src="https://files.catbox.moe/4e7s14.png" alt="https://files.catbox.moe/4e7s14.png" /></span></p>]]></content>
			<author>
				<name><![CDATA[jim]]></name>
			</author>
			<updated>2024-06-03T18:25:05Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8084#p8084</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8081#p8081" />
			<content type="html"><![CDATA[<p>Thank you. How do you manage generic services after the system starts? This would be a good example therefore. Likewise:</p><p>dhcpcd or slim</p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2024-06-03T12:43:13Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8081#p8081</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8079#p8079" />
			<content type="html"><![CDATA[<p>PKGBUILD:</p><div class="codebox"><pre><code>#


 Contributor: Maaram Zakaria &lt;benyouyou@mailo.com&gt;

pkgname=sinit
pkgver=1.1
pkgrel=1
pkgdesc=&quot;Simple init&quot;
arch=(&#039;i686&#039; &#039;x86_64&#039;)
url=&#039;https://https://git.suckless.org/sinit/&#039;
license=(&#039;MIT/X Consortium&#039;)
source=(&quot;https://dl.suckless.org/${pkgname}/${pkgname}-${pkgver}.tar.gz&quot;
        &quot;rc.init&quot;
        &quot;rc.shutdown&quot;)

sha512sums=(&#039;418ec52f9e855b2245c5db0a47db4960e5155df3bd7d45dedcd323ccb513e66568de91e12bc2e0a0b026be2cd4ffde3d67438e35fb0706d1087e806a3caed4e0&#039;







            
&#039;c5c8794c6d28d2bdf2626c5e97cfefd810eecca28f9a1cf8dcaa9aacd75a6a5287f2f79fda8a6eb96dbd7a853b459e2f18d1da72f3e101580741743347a796e0&#039;







            
&#039;db26866692a244346d77ac3813c9f7554310a17bdf99604a5f077148b2737c0d5f95d3fbf5e7a6eeb87b16d7a301750e5e83d352b4fae1527844f3e479fee046&#039;)






            
prepare() {
  cd &quot;pkgname-$pkger&quot;
  cp &quot;$srcdir/rc.init&quot; rc.init
  cp &quot;$srcdir/rc.shutdown&quot; rc.shutdown
}

build() {
  cd ${pkgname}-${pkgver}
  make
}

package() {
  cd $pkgname-$pkgver
  install -Dm0644 sinit -t /sbin
  chmod +x rc.init
  install -Dm0644 rc.init -t /bin
  chmod +x rc.shutdown
  install -Dm0644 rc.shutdown -t /bin
  ln -s sinit /sbin/init
  install -Dm0644 sinit.8 -t /usr/share/man/man8
  mkdir -p &quot;/usr/share/licenses/$pkgname&quot;
  install -Dm0644 LICENSE -t &quot;/usr/share/licenses/$pkgname&quot;
}</code></pre></div><p>These have been inspired by stali init files: <a href="http://r-36.net/scm/stali-init/files.html">http://r-36.net/scm/stali-init/files.html</a></p><p>rc.init:</p><div class="codebox"><pre><code>#!/bin/sh
#Please modify this file as it suits you
#All commented lines are optional

#umask 022

echo Running udev

/sbin/udevd --daemon
udevadm trigger --action=add --type=devices
udevadm settle

#Modules loading, just in case, normally they are automatically loaded 
by udev

#GPU module loading like nouveau
#/sbin/modprobe i915

#Sound module loading 
#/sbin/modprobe snd_hda_intel

#Keyboard map setting

#loadkeys es

echo Mounting filesystems

/bin/mount /dev/sda1 /boot
/sbin/swapon /dev/sda2

ln -sf /proc/mounts /etc/mtab

#Zram swap setting

#modprobe zram
#echo 4G &gt; /sys/block/zram0/disksize 
##echo lzo &gt; /sys/block/zram0/comp_algorithm
#mkswap /dev/zram0
#swapon /dev/zram0

echo Launching ttys

#/sbin/agetty --noclear tty0 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty1 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty2 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty3 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty4 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty5 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty6 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty7 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty8 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty9 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty10 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty11 38400 linux &amp;&gt;/dev/null &amp;
/sbin/agetty --noclear tty12 38400 linux &amp;&gt;/dev/null &amp;

/bin/mkdir -p /dev/pts
/bin/mount -n -t devpts -o gid=5,mode=0620 devpts /dev/pts

#network configuration, replace enp2s0 by your interface or leave it

#ifconfig enp2s0 up
#ip link set enp2s0 up

#wifi, replace wlan0 by your interface or leave it
#wpa_supplicant -B -i wlan0 -c/etc/wpa_supplicant.conf

#replace sdhcp by your dhcp client or leave it
#sdhcp -d enp2s0</code></pre></div><p>rc.shutdown:</p><div class="codebox"><pre><code>#!/bin/sh
#Please modify this file as it suits you
#All commented lines are optional

#umask 022

case &quot;$1&quot; in
reboot|poweroff)
    ;;
*)
    echo &quot;Invalid action &#039;$1&#039; for rc.shutdown&quot; 1&gt;&amp;2
    exit 1
    ;;
esac

# Set linefeed mode to avoid staircase effect
#echo; /bin/stty onlcr

umount /dev/pts

#ifconfig enp2s0 down

pkill -15 -e 1
pkill -9 -e 1

swapoff -a

echo Remounting root as read-only

echo u &gt; /proc/sysrq-trigger
sleep 2

echo Syncing filesystems

echo s &gt; /proc/sysrq-trigger
sleep 2

case &quot;$1&quot; in
reboot)
    echo b &gt; /proc/sysrq-trigger
    ;;
poweroff)
    echo o &gt; /proc/sysrq-trigger
    ;;
esac</code></pre></div>]]></content>
			<author>
				<name><![CDATA[benyouyou]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=694</uri>
			</author>
			<updated>2024-06-03T07:35:20Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8079#p8079</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8077#p8077" />
			<content type="html"><![CDATA[<p>Hello and welcome to the forums: If you have finished sinit as package, we would be happy to have your guidance here. Always welcome to share PKGBUILDs and more so the community can approve and test it. <img src="https://forums.hyperbola.info/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[throgh]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=347</uri>
			</author>
			<updated>2024-06-02T23:06:15Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8077#p8077</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8074#p8074" />
			<content type="html"><![CDATA[<p>Yes, I do</p>]]></content>
			<author>
				<name><![CDATA[benyouyou]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=694</uri>
			</author>
			<updated>2024-06-02T17:27:34Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8074#p8074</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8073#p8073" />
			<content type="html"><![CDATA[<p>Hello .&nbsp; Tell me please, do you use DWM with Hyperbola? Just wanted to clarify..</p>]]></content>
			<author>
				<name><![CDATA[jim]]></name>
			</author>
			<updated>2024-06-02T17:21:26Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8073#p8073</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Sinit]]></title>
			<link rel="alternate" href="https://forums.hyperbola.info/viewtopic.php?pid=8072#p8072" />
			<content type="html"><![CDATA[<p>Hello,<br /> I am new here so please guide me if I did something wrong. </p><p>You know that sinit is the lightest and fastest init of all: <br /><a href="https://git.suckless.org/sinit/.">https://git.suckless.org/sinit/.</a></p><p>I have thankfully installed it on a base Hyperbola, but I don&#039;t know if I<br /> should add it as a package, please give me the instructions, thanks !</p><p>EDIT: I realized that I should have posted this in the community section, sorry.</p>]]></content>
			<author>
				<name><![CDATA[benyouyou]]></name>
				<uri>https://forums.hyperbola.info/profile.php?id=694</uri>
			</author>
			<updated>2024-06-02T16:15:40Z</updated>
			<id>https://forums.hyperbola.info/viewtopic.php?pid=8072#p8072</id>
		</entry>
</feed>
