LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-28-2017, 08:03 AM   #46
zanculmarktum
LQ Newbie
 
Registered: Jan 2017
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled

Quote:
Originally Posted by Didier Spaier View Post
Welcome to this forum.


Certainly not. I didn't check, but most probably many services differ or are not shipped in both distributions.

I think that you should check each and every service.

That seems wrong. Have a look in /run and /var/run in Slackware.

Long story short, you need to thoroughly study Slackware's init system if you want to modify it, I think.
Thanks for the answer.
The "pidfile" I mentioned before was taken from aaditya's init scripts and Gentoo's, and that is the only difference.

Another comparison:
Code:
$ md5sum /etc/init.d/nginx
6675a388b5efe3ce6ca1c02295ce61cd  /etc/init.d/nginx
Code:
$ md5sum /usr/portage/www-servers/nginx/files/nginx.initd-r3
6675a388b5efe3ce6ca1c02295ce61cd  /usr/portage/www-servers/nginx/files/nginx.initd-r3
Again:
Code:
diff --git a/etc/init.d/consolekit b/usr/portage/sys-auth/consolekit/files/consolekit-1.0.0.initd
old mode 100755
new mode 100644
index f68517f..57ebfbe
--- a/etc/init.d/consolekit
+++ b/usr/portage/sys-auth/consolekit/files/consolekit-1.0.0.initd
@@ -4,7 +4,7 @@
 # $Id$
 
 description="consolekit - tracks login sessions and seats"
-pidfile="/run/ConsoleKit/pid"
+pidfile="/var/run/ConsoleKit/pid"
 command="/usr/sbin/console-kit-daemon"
 
 depend() {
@@ -13,5 +13,5 @@ depend() {
 }
 
 start_pre() {
-	checkpath -q -d -m 0755 /run/ConsoleKit
+	checkpath -q -d -m 0755 /var/run/ConsoleKit
 }

Last edited by zanculmarktum; 01-28-2017 at 08:11 AM.
 
Old 01-28-2017, 08:18 AM   #47
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1 on Lenovo Thinkpad W520
Posts: 8,590

Rep: Reputation: Disabled
I didn't look into aaditya's init scripts but this repository has been last updated on 2016-04-16, thus before the release of Slackware 14.2. My advice in previous post remains. But of course you remain free to experiment
 
Old 01-28-2017, 12:38 PM   #48
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 162

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Yes, they can be reused after checking if the same conditions (pidfiles, paths, etc) present on Gentoo are there in Slackware as well.

I dunno what the state was when I started the project, but on my Slackware-14.2 install I have:
Code:
$ ls -la /var/run
lrwxrwxrwx 1 root root 4 May 12  2015 /var/run -> /run/
Also, newer repository is available here.

Last edited by aaditya; 01-28-2017 at 12:49 PM.
 
Old 10-02-2018, 09:53 AM   #49
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 162

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
openrc-init

Hi,

Since version 0.25, OpenRC provides openrc-init, which can be used to boot the system instead of /sbin/init (which is sysvinit in Slackware). Advantages include not modifying system provided inittab, and allowing co-existence and easy switch between Slackware init and OpenRC.

Have been using it for a couple of weeks now, works as expected. To use it, follow the instructions in the wiki. Please let me know if there are any issues.

Thanks!
 
Old 11-06-2018, 11:07 AM   #50
aliasless
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Rep: Reputation: Disabled
Hi, I'm using openrc-init, and everything generally works. There are a few quirks though, they seem harmless so far, but I'd like to fix them.

At the end of the init process, I get this error. Searching for solutions, I could only find dead ends in Artix forums.
Code:
Error: fopen(/run/openrc/rc.log) failed: No such file or directory
I also get this, and don't know what service is causing it.
Code:
* Call to flock failed: Resource temporarily unavailable
.

Finally, I am getting this, even after updating the cache as mentioned on the wiki page.
Code:
checkpath: owner `netdata:netdata' not found
Here is the output of `rc-update`:
https://pastebin.com/raw/N5n3Srh6

And rc.log for my most recent boot:
https://pastebin.com/raw/4rK6sULe

Thanks.

Last edited by aliasless; 11-06-2018 at 11:42 AM.
 
1 members found this post helpful.
Old 11-06-2018, 12:25 PM   #51
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 162

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by aliasless View Post
Hi, I'm using openrc-init, and everything generally works. There are a few quirks though, they seem harmless so far, but I'd like to fix them.

At the end of the init process, I get this error. Searching for solutions, I could only find dead ends in Artix forums.
Code:
Error: fopen(/run/openrc/rc.log) failed: No such file or directory
I also get this, and don't know what service is causing it.
Code:
* Call to flock failed: Resource temporarily unavailable
.

Finally, I am getting this, even after updating the cache as mentioned on the wiki page.
Code:
checkpath: owner `netdata:netdata' not found
Here is the output of `rc-update`:
https://pastebin.com/raw/N5n3Srh6

And rc.log for my most recent boot:
https://pastebin.com/raw/4rK6sULe

Thanks.
Hi aliasless,

Code:
Error: fopen(/run/openrc/rc.log) failed: No such file or directory
I found similar posts and an upstream bug report, which suggest that it is related to /run not being available.

* https://forum.artixlinux.org/index.php/topic,56.0.html
* https://github.com/OpenRC/openrc/issues/216

There is one suggestion in the bugreport (near the end) that you can try.

For
Code:
* Call to flock failed: Resource temporarily unavailable
Looking at your logs, it could be related to your first issue of /run not being available.

Code:
checkpath: owner `netdata:netdata' not found
I think I found the issue, could you please change /etc/init.d/netdata like here:
https://gitlab.com/aadityabagga/open...f16beea8829c25

Thanks for your help!
 
1 members found this post helpful.
Old 11-06-2018, 05:12 PM   #52
aliasless
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Rep: Reputation: Disabled
Quote:
Originally Posted by aaditya View Post
Hi aliasless,

Code:
Error: fopen(/run/openrc/rc.log) failed: No such file or directory
I found similar posts and an upstream bug report, which suggest that it is related to /run not being available.

* https://forum.artixlinux.org/index.php/topic,56.0.html
* https://github.com/OpenRC/openrc/issues/216

There is one suggestion in the bugreport (near the end) that you can try.

For
Code:
* Call to flock failed: Resource temporarily unavailable
Looking at your logs, it could be related to your first issue of /run not being available.

Code:
checkpath: owner `netdata:netdata' not found
I think I found the issue, could you please change /etc/init.d/netdata like here:
https://gitlab.com/aadityabagga/open...f16beea8829c25

Thanks for your help!
Thanks, that change to netdata worked. I've been unable to get anywhere from that thread or bug report though.
 
1 members found this post helpful.
Old 11-07-2018, 11:14 PM   #53
aliasless
LQ Newbie
 
Registered: Nov 2018
Posts: 4

Rep: Reputation: Disabled
-snip-

Last edited by aliasless; 11-07-2018 at 11:21 PM.
 
Old Today, 10:05 AM   #54
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 162

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Hi,

With the next version update, the service and configuration directory changes from /etc to /etc/openrc.

This is being done to maintain greater compatibility with the base Slackware install, and to allow switching between sysvinit, openrc-init, runit, etc.

Existing services will need to be migrated. Documentation is available here: migrating_from_etc_initd_to_etc_openrc_initd.

Updated Slackbuilds are available here.

Feedback welcome. Please let me know if you find any issues.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenRC ReaperX7 Linux From Scratch 11 03-08-2015 08:34 PM
[SOLVED] Can't start NFS with systemd, works on OpenRC TobiSGD Linux - Server 1 07-09-2014 03:53 PM
LFS with OpenRC? ReaperX7 Linux From Scratch 5 08-13-2013 09:29 PM
SysVinit vs OpenRC vs systemd vs other init system cristi92b Linux - Newbie 2 01-07-2013 04:02 AM
/bin/* : cannot execute binary file (and an openrc problem) [gentoo] namish Linux - Newbie 6 04-07-2012 02:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:54 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration