LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-26-2014, 04:39 PM   #1
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Need help with Getty-tty5 and runit setup.


I'm trying out the alternative init system runit-2.1.1 from here:

http://slackbuilds.org/repository/14.1/system/runit/

So far I've proceeded through the setup of directories and symlinks as described in the documentation to the part of the switch over where it says to setup launching a getty on tty5, but therein lies a critical problem...

I've hit Ctrl+Alt+F5 on rebooting with init=/sbin/runit-init and no getty has appeared as was supposed it and the system has loaded most of the system in single user mode more or less from what I can observe.

The level 1 script I have had to be edited as follows:

Code:
#!/bin/sh
# system one time tasks

PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin

/etc/rc.d/rc.S
#/etc/init.d/rmnologin

touch /etc/runit/stopit
chmod 0 /etc/runit/stopit
as Slackware doesn't have a rmnologin or rc.rmnologin script anywhere in the system, and I did use whereis to try and search for it, but to no avail.

My question is did I set up the getty for tty5 incorrectly, did I miss something in the documentation (doesn't seem like it), is the runlevel script wrong?

I'm also going to post my runlevel 2 and 3 scripts just to be safe:

Runlevel 2
Code:
#!/bin/sh

PATH=/command:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/X11R6/bin

runsvchdir default >/dev/null

exec env - PATH=$PATH \
runsvdir -P /service 'log: ...........................................................................................................................................................................................................................................................................................................................................................................................................'
Runlevel 3
Code:
#!/bin/sh
exec 2>&1

PATH=/command:/sbin:/bin:/usr/sbin:/usr/bin

LAST=0
test -x /etc/runit/reboot && LAST=6

echo 'Waiting for services to stop...'
sv -w196 force-stop /service/*
sv exit /service/*

echo 'Shutdown...'
/etc/init.d/rc $LAST
Other than possibly editing the obvious links to sysv /etc/init.d/ directory paths and other commands, what else do I need to do?
 
Old 02-26-2014, 04:47 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,334

Rep: Reputation: Disabled
Well, I didn't try it (and won't :-), but this doc says:
Quote:
Step 3: The getties
At least one getty must run in stage 2 so that you are able to login. Choose a free tty, say tty5, where sysvinit is not running any getty (edit /etc/inittab and kill -HUP 1 if needed), and tell runsvdir about the getty-5 service:

# mkdir -p /service
# ln -s /etc/sv/getty-5 /service/
But in genuine Slackware /etc/inittab does run a getty on tty5.

Just comment out this line:
c5:12345:respawn:/sbin/agetty 38400 tty5 linux
if you want to free tty5.

Last edited by Didier Spaier; 02-26-2014 at 04:50 PM.
 
Old 02-26-2014, 06:54 PM   #3
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564

Original Poster
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Thanks Didier. I'll re-check it later when I get home, or tomorrow when I have time. If anyone else has any other suggestions for stuff I should worry about later on, please let me know.
 
Old 02-26-2014, 08:50 PM   #4
turtleli
Member
 
Registered: Aug 2012
Location: UK
Posts: 206

Rep: Reputation: Disabled
Are you using agetty? I've just tried it on a VM (14.1 64-bit), and it doesn't seem to work with runit. getty from getty-ps works.

This is what I used for /etc/sv/getty-5/run
Code:
#!/bin/sh
exec /sbin/getty tty5
 
Old 02-26-2014, 10:52 PM   #5
ReaperX7
LQ Guru
 
Registered: Jul 2011
Location: California
Distribution: Slackware64-15.0 Multilib
Posts: 6,564

Original Poster
Blog Entries: 15

Rep: Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120Reputation: 2120
Thank turtleli, I just noticed that, but there wasn't too much documentation on which getty package was the recommended. I'll retune it tomorrow and try again.

My hope is to possibly get a working script set drafted soon (possibly even put up on SBo) but getting Runit working in administrative mode is the first order of business.

I would like to get a how-to made once this is all said and done. The Runit package on SBO doesn't really have too many extra hints to doing an init swap-out.

Last edited by ReaperX7; 02-26-2014 at 10:55 PM.
 
  


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
[SOLVED] S6 or Runit, not systemd san2ban Slackware 33 12-16-2017 06:29 PM
problem with tty5 asifbasha Linux - Desktop 1 07-10-2009 07:30 AM
runit on SuSE 10.1 tzbishop SUSE / openSUSE 2 10-09-2006 11:26 AM
runit problems deroB Linux - Software 3 01-17-2006 02:40 PM
xdm with runit? behmjose Linux From Scratch 0 05-22-2004 03:19 PM

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

All times are GMT -5. The time now is 08:58 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
Open Source Consulting | Domain Registration