LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 07: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 07:11 AM.
 
Old 01-28-2017, 07:18 AM   #47
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,057

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, 11:38 AM   #48
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272

Original Poster
Blog Entries: 2

Rep: Reputation: 85
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 11:49 AM.
 
Old 10-02-2018, 08:53 AM   #49
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272

Original Poster
Blog Entries: 2

Rep: Reputation: 85
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, 10:07 AM   #50
aliasless
LQ Newbie
 
Registered: Nov 2018
Posts: 6

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 10:42 AM.
 
1 members found this post helpful.
Old 11-06-2018, 11:25 AM   #51
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272

Original Poster
Blog Entries: 2

Rep: Reputation: 85
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, 04:12 PM   #52
aliasless
LQ Newbie
 
Registered: Nov 2018
Posts: 6

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, 10:14 PM   #53
aliasless
LQ Newbie
 
Registered: Nov 2018
Posts: 6

Rep: Reputation: Disabled
-snip-

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

Original Poster
Blog Entries: 2

Rep: Reputation: 85
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.
 
Old 11-05-2019, 11:12 AM   #55
Nekit_Manzin
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware-current
Posts: 25

Rep: Reputation: Disabled
Code:
bash-5.0# lilo -v
LILO version 24.2 (released 22-November-2015)
  * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
  * Copyright (C) 1999-2007 John Coffman  (until v22)
  * Copyright (C) 2009-2015 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software 
distributed under the BSD License (3-clause). Details can be found in 
the file COPYING, which is distributed with this software.

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda
Using BITMAP secondary loader
Calling map_insert_data
Mapping bitmap file /boot/slack.bmp
Calling map_insert_file

Unrecognized token "init" at or above line 65 in file '/etc/lilo.conf'
I dunno how to change init on LILO, where i need add init=?
 
Old 11-05-2019, 11:26 PM   #56
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272

Original Poster
Blog Entries: 2

Rep: Reputation: 85
Quote:
Originally Posted by Nekit_Manzin View Post
I dunno how to change init on LILO, where i need add init=?
To add a parameter, one can simply write it on a new line under image, ie:

Code:
image = /boot/vmlinuz-3.12-1-generic
	...
	init=/sbin/openrc-init
More info: https://wiki.archlinux.org/index.php...arameters#LILO

If it does not work post your full /etc/lilo.conf please.
 
Old 11-06-2019, 06:20 AM   #57
Nekit_Manzin
LQ Newbie
 
Registered: Jan 2019
Distribution: Slackware-current
Posts: 25

Rep: Reputation: Disabled
Quote:
Originally Posted by aaditya View Post
To add a parameter, one can simply write it on a new line under image, ie:

Code:
image = /boot/vmlinuz-3.12-1-generic
	...
	init=/sbin/openrc-init
More info: https://wiki.archlinux.org/index.php...arameters#LILO

If it does not work post your full /etc/lilo.conf please.
First it not work but after i found solution:
Code:
image = /boot/vmlinuz
  append = "init=/sbin/openrc-init"
  root = /dev/sda3
  label = Linux
  read-only
 # Linux bootable partition config ends
 
2 members found this post helpful.
Old 07-06-2021, 03:48 PM   #58
gbschenkel
Member
 
Registered: Nov 2010
Location: Porto Alegre, Brazil
Distribution: Slackware, Proxmox, AlpineLinux, Devuan, TurnkeyLinux
Posts: 99

Rep: Reputation: 60
@aaditya could you submit the openrc and openrc-services packages to the master branch of SlackBuilds.org, the OpenRC on SBO are not building with the -current.

I have upgraded the script on my personal repo to 0.43.3. Also I have updated openrc-services to 20210102 and changed the link on .info since you have changed your username on gitlab.com. If you like my changes are linked below.

Commit: OpenRC || OpenRC-Services
 
1 members found this post helpful.
Old 07-08-2021, 05:37 AM   #59
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272

Original Poster
Blog Entries: 2

Rep: Reputation: 85
Quote:
Originally Posted by gbschenkel View Post
@aaditya could you submit the openrc and openrc-services packages to the master branch of SlackBuilds.org, the OpenRC on SBO are not building with the -current.

I have upgraded the script on my personal repo to 0.43.3. Also I have updated openrc-services to 20210102 and changed the link on .info since you have changed your username on gitlab.com. If you like my changes are linked below.

Commit: OpenRC || OpenRC-Services
Thanks for the report and changes gbschenkel! There have been some changes to the SBo templates in preparation for Slackware 15; need to check them and integrate the changes you posted. Will try to submit an update soon.
 
Old 09-12-2021, 05:41 PM   #60
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 272

Original Poster
Blog Entries: 2

Rep: Reputation: 85
Updated openrc and openrc-services in my personal slackbuilds repo, available here: https://gitlab.com/abchk1234/slackbuilds/-/tree/15-rc1

I am not using OpenRC actively these days, so it would be great to get some testing of the above packages. Thanks!
 
1 members found this post helpful.
  


Reply



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 07:34 PM
[SOLVED] Can't start NFS with systemd, works on OpenRC TobiSGD Linux - Server 1 07-09-2014 02:53 PM
LFS with OpenRC? ReaperX7 Linux From Scratch 5 08-13-2013 08:29 PM
SysVinit vs OpenRC vs systemd vs other init system cristi92b Linux - Newbie 2 01-07-2013 03:02 AM
/bin/* : cannot execute binary file (and an openrc problem) [gentoo] namish Linux - Newbie 6 04-07-2012 01:49 PM

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

All times are GMT -5. The time now is 11:54 AM.

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
Open Source Consulting | Domain Registration