<?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=3255&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Script for acting like systemctl?]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3255</link>
		<description><![CDATA[The most recent posts in Script for acting like systemctl?.]]></description>
		<lastBuildDate>Mon, 13 Jan 2020 17:22:23 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19463#p19463</link>
			<description><![CDATA[<div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p>Ah, I realize the script is complex, and has a dependency, so you probably wouldn&#039;t have installed and tried it.</p></div></blockquote></div><p>Don&#039;t tell anybody else but I&#039;m using systemd here so there may be some conflicts...</p><div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p>Would you please file some bugs against the project on gitlab?</p></div></blockquote></div><p>Done.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 13 Jan 2020 17:22:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19463#p19463</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19461#p19461</link>
			<description><![CDATA[<p>Also, help2man sounds legit! I have conducted a brief Internet search and don&#039;t see any debhelper guidelines for help2man. I found <a href="https://salsa.debian.org/reproducible-builds/diffoscope/commit/075d944" rel="nofollow">https://salsa.debian.org/reproducible-b … it/075d944</a> as an example, so it looks like one just uses help2man manually in a Makefile (or perhaps rules)?</p><p>Actually, this tool will transform how I write my --help screens... who doesn&#039;t want an auto-generated man page?! Regardless of whatever happens with this systemdtl abomination, help2man is a definite positive thing I&#039;ve learned.</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Mon, 13 Jan 2020 16:59:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19461#p19461</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19460#p19460</link>
			<description><![CDATA[<p>Ah, I realize the script is complex, and has a dependency, so you probably wouldn&#039;t have installed and tried it. The script does output some stuff when you run &quot;sudo systemctl --help.&quot; It&#039;s hardly a standard GNU coreutil --usage page, but it shows something. And it&#039;s my standard boilerplate with only one line added so it&#039;s not even demonstrating the correct verbiage.</p><p>Would you please file some bugs against the project on gitlab? Otherwise, I&#039;ll do it.</p><p>And, since you brought up lintian, is there some package I should be using for builds on a Devuan box, so that I don&#039;t get this error?</p><div class="codebox"><pre><code>Now running lintian systemdtl_0.0.1-1+devuan_amd64.changes ...
Could not find a profile matching &quot;{VENDOR}/main&quot; for vendor devuan
	Lintian::Profile::_find_vendor_profile(Lintian::Profile=HASH(0x55d82ca5b490)) called at /usr/share/perl5/Lintian/Profile.pm line 140
	Lintian::Profile::new(&quot;Lintian::Profile&quot;, undef, ARRAY(0x55d82a4852d0), HASH(0x55d82a7ba3a0)) called at /usr/bin/lintian line 216
	dplint::load_profile(undef) called at /usr/share/lintian/commands/lintian.pm line 751
	eval {...} called at /usr/share/lintian/commands/lintian.pm line 751
	main::main() called at /usr/bin/lintian line 46
	eval {...} called at /usr/bin/lintian line 46
	main::__ANON__(&quot;/usr/share/lintian/commands/lintian.pm&quot;) called at /usr/bin/lintian line 115
	dplint::run_tool(&quot;/usr/bin/lintian&quot;, &quot;lintian&quot;) called at /usr/bin/lintian line 291
	dplint::main() called at /usr/bin/lintian line 375</code></pre></div><p>I already tried</p><div class="codebox"><pre><code>$ apt-file search /usr/share/lintian/profiles/devuan
$</code></pre></div><p>EDIT:<br />Huh, I found devuan-lintian-profile which adds such a directory. Let me guess, apt-file has a cache that needs to be updated just like apt-file?</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Mon, 13 Jan 2020 16:47:45 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19460#p19460</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19456#p19456</link>
			<description><![CDATA[<div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p><a href="https://gitlab.com/bgstack15/systemdtl" rel="nofollow">systemdtl</a></p></div></blockquote></div><p>Nice script! Guess you didn&#039;t need my &quot;help&quot; then <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p><p>Is it simple to output the usage information with a <em>--help</em> option? That would allow you to create a man page with <a href="https://pkginfo.devuan.org/stage/ascii/ascii/help2man_1.47.4.html" rel="nofollow">help2man</a> and eliminate one of the Lintian warnings:</p><div class="codebox"><pre><code>W: systemdtl: copyright-has-url-from-dh_make-boilerplate
W: systemdtl: copyright-without-copyright-notice
W: systemdtl: binary-without-manpage usr/sbin/systemctl</code></pre></div><p>It&#039;s not important ofc but I do like to shut Lintian up when possible.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 13 Jan 2020 15:54:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19456#p19456</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19453#p19453</link>
			<description><![CDATA[<p>whether you build a package of hacks or adhock hacks, you are still hacking which later on down the line could present issues, especially with incompatibilities like systemd <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /> </p><p>Im a firm believer of it must work for the intended operating system without too many indirection&#039;s, if not then well look elsewhere.</p>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Mon, 13 Jan 2020 15:22:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19453#p19453</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19452#p19452</link>
			<description><![CDATA[<p>Yeah, it&#039;s for a specific niche almost entirely for me. But I share it freely for anyone else in my situation. I&#039;m definitely not trying to empower systemd; I just want to be able to install freeipa without a million ad-hoc hacks. I&#039;d rather build the hacks into a package and just install it.</p><p>I guess version 0.0.2 will include a dummy hostnamectl and systemd-detect-virt based on my current notes for joining a devuan system to a freeipa domain. I guess the virt-what wasn&#039;t good enough for the systemd people, so they subsumed that task for themselves.</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Mon, 13 Jan 2020 15:12:10 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19452#p19452</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19451#p19451</link>
			<description><![CDATA[<p>Sorry it just reads like a pointless abstraction layer, not your fault of course, you are trying to circumvent systemd pervasiveness in programming. Debian was supposed to be a universal operating system, not a universal init system.</p>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Mon, 13 Jan 2020 15:02:08 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19451#p19451</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19450#p19450</link>
			<description><![CDATA[<p>My project is named <a href="https://gitlab.com/bgstack15/systemdtl" rel="nofollow">systemdtl</a>. it provides the /usr/sbin/systemctl script, and also logs the parameters to a logfile so I can learn what more commands it needs to react to.<br />It is installable from my <a href="https://build.opensuse.org/package/show/home:bgstack15/systemdtl" rel="nofollow">OBS</a>, and it will pull in dependency bgscripts-core which is in the same OBS repo. I reused my parameter-parsing functions from a library in bgscripts-core instead of using getopts or other.</p><p>And after writing my own version, I learn that debian/Devuan packages the systemctl from the docker-systemctl-replacement, However, it appears to actually read the systemd-related files (as in unit files) so it does not do what I want it to do, so I needed to write my version anyway.</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Mon, 13 Jan 2020 14:53:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19450#p19450</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19379#p19379</link>
			<description><![CDATA[<div class="quotebox"><cite>bgstack15 wrote:</cite><blockquote><div><p>I realize this is a bizarre topic. Bear with me.</p></div></blockquote></div><p>It&#039;s not bizarre at all. I think it&#039;s a good idea. I had the same idea about two years ago when I was learning how to set up a Debian server.</p><p>Phil</p>]]></description>
			<author><![CDATA[dummy@example.com (pcalvert)]]></author>
			<pubDate>Fri, 10 Jan 2020 21:00:35 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19379#p19379</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19374#p19374</link>
			<description><![CDATA[<p>@Head_on_a_Stick, yes, basically, I&#039;m going to write a script that does that. I will need to write functionality to handle a few options I see in the freeipa source, like &quot;systemctl --now enable ntp&quot; and so on.</p><p>@HevyDevy, well, I really do want to be systemd-free, and if I have to write an interface to let things think they&#039;re just calling the systemctl command, I can live with that. I think it&#039;s rather pretentious of a package to hard-code in systemctl commands, but seeing as how FreeIPA is built by the Fedora/RHEL people, I can see why they don&#039;t bother to look beyond it.</p><p>For the longest while, to support my FreeIPA installs, I&#039;ve just been making an empty systemctl script:</p><div class="codebox"><pre><code>#!/bin/sh
true</code></pre></div><p>But I feel like I can do better.</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Fri, 10 Jan 2020 14:41:34 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19374#p19374</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19372#p19372</link>
			<description><![CDATA[<p>sort of defeats the purpose of being systemd free in a way doesnt it? Would openrc be of any help, its easy enough to create startup scripts for openrc.</p><p><a href="https://wiki.gentoo.org/wiki/Join_FreeIPA" rel="nofollow">https://wiki.gentoo.org/wiki/Join_FreeIPA</a></p>]]></description>
			<author><![CDATA[dummy@example.com (HevyDevy)]]></author>
			<pubDate>Fri, 10 Jan 2020 10:26:20 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19372#p19372</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19369#p19369</link>
			<description><![CDATA[<p>Write your own wrapper script for the command, perhaps?</p><p>Something like this at /usr/local/bin/systemctl:</p><div class="codebox"><pre><code>#!/bin/sh
case &quot;$1&quot; in
   start) service &quot;$2&quot; start ;;
   stop) service &quot;$2&quot; stop ;;
esac</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 10 Jan 2020 06:01:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19369#p19369</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19364#p19364</link>
			<description><![CDATA[<p>Alas, Jesse Smith&#039;s fantastic script is not what I&#039;m looking for. I don&#039;t need to convert systemd unit files to real init scripts. I want to provide a &quot;systemctl&quot; interface to real commands, so that I don&#039;t have to jury-rig a package to use the real commands. The freeipa bits should be able to call &quot;systemctl stop httpd&quot; and the systemctl replacement translates it to &quot;service httpd stop&quot; (or apache2, probably... hm. Save that for version 2).</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Fri, 10 Jan 2020 01:11:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19364#p19364</guid>
		</item>
		<item>
			<title><![CDATA[Re: Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19363#p19363</link>
			<description><![CDATA[<p>Please have a look at this:</p><p><a href="https://lists.dyne.org/lurker/message/20191127.081758.d980d6a4.en.html" rel="nofollow">https://lists.dyne.org/lurker/message/2 … a4.en.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Fri, 10 Jan 2020 01:08:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19363#p19363</guid>
		</item>
		<item>
			<title><![CDATA[Script for acting like systemctl?]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=19362#p19362</link>
			<description><![CDATA[<p>I realize this is a bizarre topic. Bear with me.</p><p>Does anyone have, or know of any, script that is designed to take commands like systemctl, and run the real commands? For example, if I run &quot;systemctl start httpd&quot; it will translate it to and execute, &quot;service httpd start.&quot;</p><p>I think writing such a script, if none exists already, would be easier than trying to patch <a href="https://packages.debian.org/sid/freeipa-client" rel="nofollow">freeipa</a> to use hard-coded &quot;service httpd start&quot; commands and similar. I started down that route, but some commands include things such as --now and condrestart, which I might need to write a script for, even if it&#039;s more basic than a real conditional restart (for which I will have to RTFM to know the condition it depends on).</p><p>If nobody has any pointers, I will get started on such a script. I think I&#039;ll call it the undiscoverable term &quot;systemdtl,&quot; for System Desire to Live. However, I would love to build on somebody else&#039;s work should such a thing exist and be suitably licensed.</p>]]></description>
			<author><![CDATA[dummy@example.com (bgstack15)]]></author>
			<pubDate>Fri, 10 Jan 2020 00:42:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=19362#p19362</guid>
		</item>
	</channel>
</rss>
