LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-31-2015, 12:59 AM   #16
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 161

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled

Available from SBo now.
http://slackbuilds.org/result/?search=openrc&sv=14.1
 
5 members found this post helpful.
Old 05-31-2015, 05:59 AM   #17
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
Good job Aaditya.
 
1 members found this post helpful.
Old 05-31-2015, 07:02 AM   #18
FTIO
Member
 
Registered: Mar 2015
Location: Las Vegas, NV
Distribution: Slackware 14.1_32
Posts: 249

Rep: Reputation: 116Reputation: 116
Thank you, aaditya, for your work on this.
 
1 members found this post helpful.
Old 06-01-2015, 07:06 AM   #19
GazL
Senior Member
 
Registered: May 2008
Posts: 4,773
Blog Entries: 14

Rep: Reputation: Disabled
Yep, thanks for your efforts on this.


Quote:
After installing openrc and openrc-services, on rebooting one is booted to a command line with only the bare minimum of services enabled.

It may show a warning about deprecated support for /etc/mtab as a file, and how to correct it:
Code:
# cp /etc/mtab /etc/mtab.bak
# ln -snf /proc/self/mounts /etc/mtab

Is it necessary to bug the user about the mtab file being "deprecated"? Isn't that just a choice?

When using automount (autofs) I found there were differences in behaviour between /proc/self/mounts and /etc/mtab: when it came to unmounting, filesystems appeared to be removed from /proc/self/mounts at the start of the unmounting process, but were removed from /etc/mtab when the unmount completed. For slow devices like usb-sticks which might take a minute or so to flush buffers this could be important. For this reason, (and for the fact that /etc/mtab doesn't show extraneous information) I prefer to keep the file.

Last edited by GazL; 06-01-2015 at 07:11 AM.
 
Old 06-01-2015, 12:29 PM   #20
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 161

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by GazL View Post
Yep, thanks for your efforts on this.

Is it necessary to bug the user about the mtab file being "deprecated"? Isn't that just a choice?

When using automount (autofs) I found there were differences in behaviour between /proc/self/mounts and /etc/mtab: when it came to unmounting, filesystems appeared to be removed from /proc/self/mounts at the start of the unmounting process, but were removed from /etc/mtab when the unmount completed. For slow devices like usb-sticks which might take a minute or so to flush buffers this could be important. For this reason, (and for the fact that /etc/mtab doesn't show extraneous information) I prefer to keep the file.
Hi GazL,

I searched for this, and came across several links:

https://wiki.gentoo.org/wiki/Systemd#.2Fetc.2Fmtab
https://bugs.gentoo.org/show_bug.cgi?id=477498
https://bugs.debian.org/cgi-bin/bugr...cgi?bug=494001

These seem to suggest that since linux>2.6.26, all information that is present in /etc/mtab is also provided in /proc/self/mounts, and also some software (like systemd) seems to depend on it, so I guess it was done as a path of least resistance (there seem to be some advantages as well for switching).

The following link sheds more light on the pros and cons of it:
http://www.gossamer-threads.com/lists/gentoo/dev/279694

Maybe you could ask on the openrc IRC channel to know if its possible to remove the warning
 
1 members found this post helpful.
Old 06-01-2015, 05:40 PM   #21
GazL
Senior Member
 
Registered: May 2008
Posts: 4,773
Blog Entries: 14

Rep: Reputation: Disabled
Thanks for the reply. Unless I find a good reason not too, I'll continue to use a file. Shouldn't be too difficult to take the warning out of the openrc code if it comes to it. I was just curious why they even care if someone is using a file rather than /proc/mounts. I'm waiting on a new hard drive, so I can't really play with this stuff until that arrives as I'm short on free partitions at present.
 
Old 06-01-2015, 09:35 PM   #22
PrinceCruise
Member
 
Registered: Aug 2009
Location: /Universe/Earth/India/Pune
Distribution: Slackware64 -Current
Posts: 890

Rep: Reputation: 185Reputation: 185
Good job aaditya.

Regards.
 
Old 06-01-2015, 11:03 PM   #23
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
One thing that could also be done externally for using OpenRC stand-alone is incorporating a small check execution during the packaging stage of SlackBuilds installing init scripts into /etc/rc.d. I started adding these into my own SlackBuilds like ConsoleKit2:

Code:
if [ -d /etc/rc.d ]; then
   mkdir -p $PKG/etc/rc.d
   cp -a $CWD/rc.<bootscript name>
fi
to avoid installing unnecessary files if the intended directory of installation is not present.

Personally, I removed all the Slackware standard init rc scripts and setup OpenRC to run stand-alone.
 
Old 06-27-2015, 11:26 AM   #24
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Tested, your openrc packages on a new slack-current install here, all work fine, good job, aaditya
 
Old 06-27-2015, 11:28 AM   #25
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-Current
Posts: 6,444
Blog Entries: 15

Rep: Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013Reputation: 2013
Currently you may have to edit the ZFS script /path/to zpool and zfs utils in /sbin, but I reported it so it should be fixed soon enough.
 
Old 06-29-2015, 01:59 AM   #26
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Just a question, openrc has a module for the net-snmp service ?
 
Old 06-29-2015, 08:59 AM   #27
aaditya
Member
 
Registered: Oct 2013
Location: India
Distribution: Slackware
Posts: 161

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by gmgf View Post
Just a question, openrc has a module for the net-snmp service ?
Hi,

Yes, it seems to be available here.

I have added it to the services repo, and it will probably be available in the next update.
 
Old 06-29-2015, 01:44 PM   #28
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Ok, thanks
 
Old 06-29-2015, 02:46 PM   #29
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I have built a package with your latest commit (20150629), the two net-snmp service work correctly here.

Thanks
 
1 members found this post helpful.
Old 06-30-2015, 03:40 AM   #30
gmgf
Senior Member
 
Registered: Jun 2012
Location: Bergerac, France
Distribution: Slackware
Posts: 1,652

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
I think ulog service maybe need added also

http://gentoo.maxnod.com/app-admin/ulogd/files/
 
  


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 10:18 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